android-mapview

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

This app won't run unless you update Google Play Services (via Bazaar)

冷暖自知 提交于 2019-11-25 23:59:17
问题 I\'m testing out the new Google Maps API V2 for Android, and I\'m getting this message when the app launches: This is running on an 4.1 emulator. Here is my AndroidManifest.xml file: <manifest xmlns:android=\"http://schemas.android.com/apk/res/android\" package=\"com.example.maptest\" android:versionCode=\"1\" android:versionName=\"1.0\" > <uses-sdk android:minSdkVersion=\"8\" android:targetSdkVersion=\"15\" /> <permission android:name=\"com.example.maptest.permission.MAPS_RECEIVE\" android

Why retrieving Google Directions for Android using KML data is not working anymore? [duplicate]

北慕城南 提交于 2019-11-25 23:31:04
问题 Possible Duplicate: Google Maps output=kml broken? I started to get Error when I\'m trying to retrieve Google Directions using KML data since few days. The Error seems that the URL I\'m requesting doesn\'t retreieve KML data anymore, it returns a whole page. I followed this in order to achieve that. What is the solution for this? Is there any alternatives? 回答1: Update: Since Android Google Maps v2 is now used, the code needs to be adjusted to work on v2 maps which can be found here. Original

How to draw a path on a map using kml file?

给你一囗甜甜゛ 提交于 2019-11-25 21:58:59
问题 Can I parse kml file in order to display paths or points in Android? Please could you help me with that? This is kml sample code which I would like to display in android google map: <?xml version=\"1.0\" encoding=\"UTF-8\"?> <kml xmlns=\"http://www.opengis.net/kml/2.2\"> <Document> <name>Paths</name> <description>Examples of paths. Note that the tessellate tag is by default set to 0. If you want to create tessellated lines, they must be authored (or edited) directly in KML.</description>

Capture screen shot of GoogleMap Android API V2

偶尔善良 提交于 2019-11-25 21:12:59
Final Update The feature request has been fulfilled by Google. Please see this answer below. Original Question Using the old version of the Google Maps Android API, I was able to capture a screenshot of the google map to share via social media. I used the following code to capture the screenshot and save the image to a file and it worked great: public String captureScreen() { String storageState = Environment.getExternalStorageState(); Log.d("StorageState", "Storage state is: " + storageState); // image naming and path to include sd card appending name you choose for file String mPath = this

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