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. Help on javadoc generation

I'm trying to generate the documentation for a new library that will
be part of a SDK add-on. I'd like to remove some classes from the
javadoc (such as generated classes based on aidl).
I thought that setting the LOCAL_SRC_FILES variable (before including
BUILD_DROIDDOC) to only the classes I'd like to include in the javadoc
would do the trick, but all classes are being included (even generated
IPC classes).
Here is how I'm writing the makefile:

include $(CLEAR_VARS)

LOCAL_SRC_FILES := com/xxx/yyy/ClassA.java \
                                   com/xxx/yyy/ClassB.java

LOCAL_MODULE:= my_module_name
LOCAL_DROIDDOC_OPTIONS := my_module_name
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
LOCAL_DROIDDOC_USE_STANDARD_DOCLET := true

include $(BUILD_DROIDDOC)

All classes in the com.xxx.yyy package are being included in the
Javadoc, not only ClassA and ClassB.

Can anyone help ?

Regards,

Wesley

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. any lawyer types out there that can get this site down?


100% pirates

-- 

3. Service that can report my location all the time

4. Top Apps in Market

5. Accelerometer - direction of shake?

6. Prestasi

7. Spinner dropdown causes status bar to show in fullscreen