Thanks - That saves me trying it out in an AVD target that does not include the maps API shared library. I do not get the rationale for Google not making the library available so the API could be used without the device dependency.
Is there a way to find out which devices have the Maps API add-on library? If it is not widely deployed then I guess you have to drop back to using the regular Google Maps API and essentially creating your own MapsActivity (probably no small task). On a related subject, is there a way to find out which devices have which versions of the SDK? On Sep 30, 1:20 pm, Xavier Ducrohet <x...@android.com> wrote: > maps.jar is only the api (and there isn't even any code, it's only > stubbed classes/methods). > There is extra code present on the devices that is required to run a MapView. > > Adding maps.jar to your application is not going to work. > > Xav > > > > On Wed, Sep 30, 2009 at 12:19 PM,jotobjects<jotobje...@gmail.com> wrote: > > > Does this work for maps.jar (Android Maps API) if you are on a device > > that doesn't have it in a shared library? I'm asking because the docs > > say "The Maps external library is not part of the standard Android > > library, so it may not be present on some compliant Android-powered > > devices." > > > > > http://code.google.com/android/add-ons/google-apis/maps-overview.html > > > Why does that matter if you can include the library with your > > application package? > > > On Sep 30, 10:59 am, Xavier Ducrohet <x...@android.com> wrote: > >> I'm guessing you use the Ant script if you don't use eclipse then. > > >> Create a libs folder in your root directly (same level as res, the > >> manifest, etc...), and just drop your jar file in there. It'll be > >> automatically picked up by the build script. > > >> Xav > > >> On Tue, Sep 29, 2009 at 10:31 PM, JavaNut <i...@chiralsoftware.net> wrote: > > >> > Is there a way to add external JARs to an Android project? I have > >> > some code in an external JAR file that I want to use. > > >> > I saw many references to doing this within Eclipse, but I don't have > >> > Eclipse. I assume there's some way to do it by editing > >> > AndroidManifest.xml? > > >> > I couldn't find any description of how to do this other than using > >> > Eclipse. > > >> -- > >> Xavier Ducrohet > >> Android SDK Tech Lead > >> Google Inc. > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---