views:

34

answers:

1

Is it possible to use Google Maps Android library in my app in a way, that the app can be installed even on phones without Google Maps? On phones without Google Maps, the maps feature would be disabled.

+1  A: 

Is it possible to use Google Maps Android library in my app in a way, that the app can be installed even on phones without Google Maps?

There is an undocumented android:required="false" flag you can put on the <uses-library> element. I am hopeful that they will document this in a future release. With that set to false, you would need to use reflection to see if Google Maps is loaded (e.g., try to find the MapView class) -- if not, disable whatever would lead the user to a map.

CommonsWare
When Maps library isn't present, you can use a WebView wrapper around the Map Web interface.
notnoop