Monday, September 13, 2010

Re: [android-developers] Map Application available on Android Emulator

There's some confusion it seems.

> Questions are:
> 1.  Will it be available on all android phones?

No. The library is not standard. Some manufacturers can decide to not use it.
This is why application must declare in their manifest that they
require it to run (<uses-library
android:name="com.google.android.maps"/>).

If the library is not on the device, applications that need it won't
install (and Market won't even display them)

>  2. Can I call this application from my application? If yes then how?
> I dont know how to call another class. I think, I should know the
> starting activity's class name. If this is the case, What is the
> starting activity class name in case of this map application.

You don't call maps. the MapView library and the maps app are unrelated.

Instead you use a MapView in your layouts. See the API there:
http://code.google.com/android/add-ons/google-apis/index.html

> 3. What will happen to my application, if someone uninstall Map
> application, in case I use this map application?

Because your app won't use the Maps application but the Google Maps
system library, there is no way for the user to remove what your app
needs.

Xav
--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment