I need to write an application, which will be using a shared library. I need that application to be installed on devices with Android 1.6 and above. I have added the shared library information on the manifest file as follows:
<uses-library android:name="com.google.android.maps" android:required="false" />
Now, the android:required field is added from Android 2.1 above and this tag will be ignored by the Android 1.6, and hence the application will fail to install saying " INSTALL_FAILED_MISSING_SHARED_LIBRARY".
My question is that, is there any way by which, I need not define the shared library information in the manifest and instead I can load the system library ("com.google.android.maps" in my case) dynamically and use reflection to access the class and methods of the library?