As of 2.0 I believe there is an additional attribute on uses-library that lets you specify that it is optional.
On Mon, Jan 18, 2010 at 3:14 PM, MarcoAndroid <[email protected]> wrote: > Ok thanks. > > It would be great to be able to still provide the app to everybody > (both Google Market & outside), but just no maps functionality enabled > if Maps can't be found/isn't available. > > Can't I do this as a workaround to make my app handle that case too? > > 1- remove the uses-library tag from the manifest (thus everybody can > install it) > 2- try to load for example the MapView class via reflection or a > wrapper as mentioned here > http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html > 3- if not there, don't show maps functionality. If there, assume it's > available. > > BTW, is the loading of libs specified via uses-library different from > the "regular" class/lib loading? > > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

