SupportMapFragment loads extremely slowly the first time, but quickly in subsequent loads (including various actions)

My application has three different actions that use SupportMapFragment . After starting the application, there is a serious delay on the first boot. This slow loading time does not during subsequent loads, even if I go back and get access to a completely different Activity (which also contains a map). I am trying to figure out if this is something that I could fix.

This method shows how I load SupportMapFragment . Using debug points, I determined that slowness occurs between onViewCreated and onStart .

Update 1 . Using Debug , I took two traces of the first boot and the second load. The second load is in a completely different Activity . I quickly noticed that the first trace (slow load) has LOT calls to java/util/zip/zipEntry . I do not see such calls in the second track. In addition, this delay occurs between onCreateView and onViewCreated MapFragment.

Update 2 . This also happens with MapFragment (not supported), except that the delay is actually much longer.

Update 3 : This SO question seems to be related. Also this one .

+7
android supportmapfragment mapfragment
source share

No one has answered this question yet.

See similar questions:

23
What slows down loading a map fragment?
12
setContentView () slowly with a map fragment

or similar:

32
The first launch of Activity with Google Maps is very slow.
nine
Android: accelerate the transition of a common element between actions
3
How to start my own work instead of a mobile home screen as soon as the download completes with android?
2
The correct and complete way to add a map to a fragment that is part of the navigation box
2
Using Two SupportMapFragment in one action, but unable to remove the token from the second SupportMapFragment, which I added to First SupportMapFragment
one
How to draw a path between two points using mapFragment?
one
How to clear glSurfaceView accessed by SupportMapFragment?
0
AbsListView shows logcat slows down ListActivity loading on first boot on samsung device in logcat
0
Stop infinite loop from onCreateView when trying to load fragment layout
0
Show dialog, by fragment working

All Articles