Android google map disappear / redraw for a second

You may know that Android studio offers a project skeleton for using google maps. This project contains only one activity and a map fragment. This is my short version:

public class MapsActivity extends FragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_maps);

        if(savedInstanceState == null){
            getSupportFragmentManager().beginTransaction()
                    .add(R.id.wrapper, new SupportMapFragment(), "TEST")
                    .commit();
        }
    }
}

      

In this example, I see a redraw problem. The map itself disappears for a second (only the map, but not the entire map piece, because we can still see the map controls) when:

  • The application is minimized and reopened.
  • When the user goes to another activity and returns to the map again

enter image description here

This has been fixed on Nexus4 (4.4.4). However, I don't see this issue on another phone running Android 4.1.2.

Any ideas what could be wrong? Are there any solutions for this?


Update

It just turned out that the google maps app has this problem. So this should be a problem with building google maps on Android 4.4.4.

Bug report generated: https://code.google.com/p/android/issues/detail?id=77192&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

+3
android android-fragments android-maps-v2


source to share


No one has answered this question yet

Check out similar questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to persist android activity state by persisting instance state?
2097
Is there a way to run Python on Android?
1858
"Debug certificate expired" error in Android Eclipse plugins
1844
What is "Context" on Android?
nine
Endless "loading configuration" in view mode
1
Google Maps API v2



All Articles
Loading...
X
Show
Funny
Dev
Pics