I am using new maps api. its working fine.. But when the device orientation changes.. the map become unresponsive. i mean map doesn't react to the user response.
This, problem doesn't occurs when i embed the map fragment in the layout xml. but occurs only when i am trying to add the mapfragment in the layout container in the Activity's onCreate.
Can anyone tell me the problem.
Here the way i am adding the map
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".HomeActivity" >
<FrameLayout
android:id="@+id/activity_home_fragment_container"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true">
</FrameLayout>
</RelativeLayout>
And in Activity's oncreate
mMapFragment = new SupportMapFragment();
FragmentManager manager = getSupportFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
transaction.add(R.id.activity_home_fragment_container, mMapFragment,
"MAP_FRAGMENT");
transaction.commit();