android-maps-v2

TileProvider using local tiles

假如想象 提交于 2019-11-26 01:27:29
问题 I would like to use the new TileProvider functionality of the latest Android Maps API (v2) to overlay some custom tiles on the GoogleMap . However as my users will not have internet a lot of the time, I want to keep the tiles stored in a zipfile/folder structure on the device. I will be generating my tiles using Maptiler with geotiffs . My questions are: What would be the best way to store the tiles on the device? How would I go about creating a TileProvider that returns local tiles? 回答1: You

Running Google Maps v2 on the Android emulator

风流意气都作罢 提交于 2019-11-26 01:25:08
问题 I\'ve tried to implement Google Maps v2 in my Android application, but unfortunately instead of maps I get this message: Is it possible to run these maps on the Android emulator (Platform 4.2)? 回答1: At the moment, referencing the Google Android Map API v2 you can't run Google Maps v2 on the Android emulator; you must use a device for your tests. 回答2: For those who have updated to the latest version of google-play-services_lib and/or have this error Google Play services out of date. Requires

Error opening SupportMapFragment for second time

一个人想着一个人 提交于 2019-11-26 01:07:30
问题 When opening my SupportMapFragment (Android maps v2) for a second time (calling setContentView) I get the following error: 01-28 16:27:21.374: E/AndroidRuntime(32743): FATAL EXCEPTION: main 01-28 16:27:21.374: E/AndroidRuntime(32743): android.view.InflateException: Binary XML file line #6: Error inflating class fragment 01-28 16:27:21.374: E/AndroidRuntime(32743): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 01-28 16:27:21.374: E/AndroidRuntime(32743): at android

GoogleService failed to initialize

依然范特西╮ 提交于 2019-11-26 00:58:28
问题 I am using google Maps in my android application. I have created the key and added necessary permissions in manifest file. But soon I start the application I get this message in debugger: GoogleService failed to initialize, status: 10, Missing an expected resource: \'R.string.google_app_id\' for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin. I am not sure whats wrong. The Map is working fine and I can use it

GoogleService failed to initialize

我们两清 提交于 2019-11-25 20:54:40
I am using google Maps in my android application. I have created the key and added necessary permissions in manifest file. But soon I start the application I get this message in debugger: GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin. I am not sure whats wrong. The Map is working fine and I can use it without any issues. My gradle file has this entry: compile 'com.google.android.gms:play-services:8.4.0' What