MapView in a Fragment (Honeycomb)

I’ve managed to resolve this by using TabHost in fragment. Here is the idea (briefly): MainFragmentActivity extends FragmentActivity (from support library) and has MapFragment. MyMapActivity extends MapActivity and contain MapView. LocalActivityManagerFragment hosts LocalActivityManager MapFragment extends LocalActivityManagerFragment. And LocalActivityManager contains MyMapActivity activity in it. Example implementation: https://github.com/inazaruk/map-fragment.

Google Maps Android API v2 Authorization failure

Steps: to ensure that device has Google Play services APK to install Google Play Service rev. more than 2 to create project at https://code.google.com/apis/console/ to enable “Google Maps Android API v2” to register of SHA1 in project (NOW, YOU NEED WRITE SHA1;your.app.package.name) at APIs console and get API KEY to copy directory ANDROID_SDK_DIR/extras/google/google_play_services/libproject/google-play-services_lib to root … Read more

Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment

The answer Matt suggests works, but it cause the map to be recreated and redrawn, which isn’t always desirable. After lots of trial and error, I found a solution that works for me: private static View view; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { if (view != null) { ViewGroup parent = … Read more