Ah sorry. No maps won't be on every devices. Any manufacturer can make a device and decide not to talk to Google to include maps.
You can't call out to the classes of the maps app as you don't have access to them. Intents are the way to do this on Android. Now, I don't know if we publish the intents needed to talk to the map app. Do a search. If you launch an intent and no app are available to answer the intent you'll get an exception I think. Just catch it. On Mon, Sep 13, 2010 at 10:06 PM, cool.manish <[email protected]> wrote: > Hi Xavier, > > Thanks for your reply. But I wasn't asking about the map library, I am > talking about map application which is installed on sdk1.6 and above. > In this application we can display route from current location to end > point and route between any two points. > > On Sep 14, 5:59 am, Xavier Ducrohet <[email protected]> wrote: >> 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 [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 > -- 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 [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

