setContentView() slow with map fragment

后端 未结 2 1671
-上瘾入骨i
-上瘾入骨i 2020-12-28 21:52

I am working on an app that shows a google map (api v2) as a fragment. When the app loads it shows a blank white screen for a couple of seconds before showing the map. I h

相关标签:
2条回答
  • 2020-12-28 22:13

    I've found that this can be pretty slow if you have a debugging session connected, but is usually a more acceptable speed when you don't. If it runs faster with the USB cable disconnected, that's probably why.

    0 讨论(0)
  • 2020-12-28 22:31

    This is a drawback of using a GLSurfaceView such as the new maps v2 in Android. The delay is caused by the initialisation of the GLSurfaceView. See here http://code.google.com/p/gmaps-api-issues/issues/detail?id=4639 for a brief explanation near post #5 from a Googler and a snippet to help this problem (a little). Please star the issue to increase its priority.

    0 讨论(0)
提交回复
热议问题