How to check for existence of 3rd party library during installation?

by Shivakumar T » Thu, 07 Oct 2010 07:05:25 GMT


Sponsored Links
 Hi,

If my app is dependent on a 3rd party library, say chartdroid 
< http://code.google.com/p/chartdroid/> ;. Is there a way to check this 
dependency during installation time and redirect the user to install the 
dependency before continuing to install my app.


I ask this because while installing one Google app (I think Google 
translate) it asked me to install TTS before continuing to install.


Thank in Advance.

--
Best regards
cx0der


--



How to check for existence of 3rd party library during installation?

by Mark Murphy » Thu, 07 Oct 2010 07:10:21 GMT


 


I am assuming your "3rd party library" is in the form of a separate
application. In that case, you can use PackageManager to see if it is
installed. However, you cannot do this during installation -- only
when your application is run by the user.

If by "3rd party library" you mean a JAR, that will be bundled in your
application automatically, and so it cannot be missing at installation
time.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

_Android Programming Tutorials_ Version 3.0.1 Available!

--


Sponsored Links


How to check for existence of 3rd party library during installation?

by Kumar Bibek » Thu, 07 Oct 2010 13:46:50 GMT


 Yes you can. Query the package manager.




>



Other Threads

1. Application Not Responding (ANR) dialog

In the follow blog, it talks about Application Not Responding (ANR) dialog

http://developer.android.com/guide/practices/design/responsiveness.html

Can you please tell me where in the code which pop up this Application
Not Responding (ANR) dialog? Or how can I adjust the timer for this
dialog so that it won't pop up during debugging?

Thank you.

--~--~---------~--~----~------------~-------~--~----~

2. Has there been a change in market date listing?

I'm anticipating that the server-component of the market app has been
upgraded in preparation for changes in the Android app which will get pushed
out with 1.5. I'm waiting to see if there are any changes there before
coming to a judgement.
Tom.

2009/4/25 Jon Colverson <jjc1...@gmail.com>




--~--~---------~--~----~------------~-------~--~----~

3. Idea of making typing efficient and easy on phones with screen keyboard

4. Cant access paid apps in US

5. Need help on Mobile Middleware

6. What is the correct way to refresh UI when I use android:configChanges="keyboardHidden|orientation"

7. Low on space error - android-2.6.29 port to Overo TI OMAP 3503