我正在开发一款在Google地图上显示大量标记的应用。为了避免应用程序工作太慢,我实现了标记聚类系统。一切都工作得很好,直到我将我的测试设备更新到kitkat,之后我的谷歌地图永远不会停止工作和下载数据,所以它在LogCat中显示这个错误真的很慢:
Skipped x frames! The application may be doing too much work on its main thread.
以及很多这样的消息:
09-25 11:54:40.373: D/USER_EVENTS(14233): Event: type=113, status: ma, data: c=241
09-25 11:54:40.375: D/USER_EVENTS(14233): Event: type=113, status: mI, data: c=241
09-25 11:54:40.375: D/USER_EVENTS(14233): Event: type=113, status: mt, data: c=149
09-25 11:54:40.477: D/REQUEST(14233): Add Data Request: 108
09-25 11:54:40.479: D/REQUEST(14233): Connection opened to:https://clients4.google.com/glm/mmap/api
09-25 11:54:40.479: D/REQUEST(14233): Open Connection
09-25 11:54:40.868: D/REQUEST(14233): Processing DataRequest: com.google.maps.api.android.lib6.b.d@4254a520
09-25 11:54:40.868: D/REQUEST(14233): Processing DataRequest: com.google.maps.api.android.lib6.gmm6.m.af@42c41940
09-25 11:54:40.870: D/REQUEST(14233): DRD(25): 62|108, <1s, <1kb
09-25 11:54:40.870: D/REQUEST(14233): Close
09-25 11:54:40.871: D/USER_EVENTS(14233): Event: type=22, status: fb, data: 389
09-25 11:54:40.872: D/USER_EVENTS(14233): Event: type=22, status: lb, data: 391
09-25 11:54:40.873: D/USER_EVENTS(14233): Event: type=22, status: flbs, data: fb=389|lb=391|s=94
09-25 11:54:40.966: D/dalvikvm(14233): GC_FOR_ALLOC freed 1970K, 15% free 17925K/20956K, paused 48ms, total 48ms
这是关于kitkat的已知问题吗?
除了对标记进行聚类外,如何使谷歌地图顺利运作?
答案 0 :(得分:0)
我已经解决了它实施Viewport标记管理器技术,我还在这里创建了一个指南:How to use Viewport Marker Management on Android