问题描述
我看到负载消息时加载OSMdroid图形页面,如果不加载瓷砖网上,然后自动将其转移到看SD卡安装状态和它的文件夹../ osmdroid
I see the load messages when loading OSMdroid mapview that if not loading tiles online, then automatically it shifts to look at sdcard mount state and its folder ../osmdroid
05-15 16:26:47.462: I/org.osmdroid.views.MapView(4366): Using tile source: org.osmdroid.tileprovider.tilesource.XYTileSource@427c0bb8
05-15 16:26:47.472: I/org.osmdroid.tileprovider.modules.MapTileFileStorageProviderBase(4366): sdcard state: mounted
05-15 16:26:47.472: I/org.osmdroid.tileprovider.modules.MapTileFileStorageProviderBase(4366): sdcard state: mounted
我如何禁用这种阅读SD卡的安装状态?这可能吗?为什么我问的是,因为它似乎分配内存为可用的地图包,不断GC我正在压倒一切和UI响应缓慢或堵塞,直到GC_FOR_ALLOC完成。我使用的是*压缩地图包不等的缩放级别0-18。
How can I disable this reading of SDcard mount state? Is this possible? Why am I asking is because, It seems to allot memory for the map packages available, and constantly my GC is being overriding and UI response is slow or stuck until GC_FOR_ALLOC finishes. I'm using *zip map package ranging from zoomlevel 0-18.
推荐答案
OSM的图形页面下发视MapPackage和初始设置所需的内存,所以相对于Android应用程序的内存管理必须在内部处理,并触发GC是安静常见的,需要被检查的Android应用程序处理内存和每个应用程序的性能,必须分析并正确调试。
The OSM MapView allots the required memory depending on the MapPackage and the initial settings, so management of memory with respect to android application must be handled internally and triggering an GC is quiet common, and handling memory for android app needs to be checked and performance of each app has to be analyzed and debugged correctly.
这篇关于如果安装的图形页面的加载之前OSMdroid图形页面读取SD卡状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!