Error displaying Map after Upgrading to Skobbler 2.2.0

爷,独闯天下 提交于 2019-12-23 12:46:00

问题


I am developing an android app with Skobbler. After updating to the latest version of the Skobbler SDK (2.2.0) we got this problem

Sometimes the map just works. The Background is displayed and all the markers. But next time starting the App (without even change something) the background stays gray and it says:

E/BitmapFactory﹕ Unable to decode stream: java.io.FileNotFoundException: /null/res/xhdpi/icon_map_popup_navigate.png: open failed: ENOENT (No such file or directory)
E/BitmapFactory﹕ Unable to decode stream: java.io.FileNotFoundException: /null/res/xhdpi/icon_map_popup_arrow.png: open failed: ENOENT (No such file or directory)

It seems like die SDK sometimes drops the path to the MapResources (null). The files are in place and as I said, sometimes it works.

The initialisation of the MapResources worked with the last Version. There were no Problems.

What I've changed:

  • Added mapView.resume() and mapView.pause() in my MapActivity
  • Replaced mercadorToGps and gpsToMercador with coordinateToPoint and pointToCoordinate because old Methods were removed
  • Replaced zoomToLevel() with animateToZoomLevel() because old Methods were removed

I would love to use the new Version of the SDK, but as it is now I can't.

来源:https://stackoverflow.com/questions/25906499/error-displaying-map-after-upgrading-to-skobbler-2-2-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!