Wednesday 15 July 2015

eclipse - My Android App shows the google map in debug but doesn't show it when released to the market -


I have an app that I have created which uses Google Maps and Google Playstore and uses Eclipse and Android SDK While debuging the map I'm running on is visible on that device, but on release it does not appear on the app. This is just a big gray screen.

AndroidManifest.xml

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Manifest xmlns: Android = "http://schemas.android.com/apk/res/android" package = "com.eema" Android: versionCode = "5" Android: versionName = "5" & gt; & Lt; Use-sdk android: minSdkVersion = "8" Android: targetSdkVersion = "10" /> & Lt; Permission Android: name = "com.eema.permission.MAPS_RECEIVE" Android: protectionLevel = "signature" /> & Lt; Usage-permission Android: name = "com.eema" /> & Lt; Use-permission Android: name = "com.eema.permission.MAPS_RECEIVE" /> & Lt; Usage-permission Android: name = "android.permission.INTERNET" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_NETWORK_STATE" /> & Lt; Usage-permission Android: name = "android.permission.WRITE_EXTERNAL_STORAGE" /> & Lt; Use-permission Android: name = "com.google.android.providers.gsf.permission.READ_GSERVICES" /> & Lt ;! - The following two permissions are not required in order to use Google Maps Android API v2, but it is recommended - & gt; & Lt; Usage-permission Android: name = "android.permission.VIBRATE" /> & Lt; Usage-permission Android: name = "android.permission.INTERNET" /> & Lt; Usage-permission Android: name = "android.permission.INTERNET" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_NETWORK_STATE" /> & Lt; Usage-permission Android: name = "android.permission.WRITE_EXTERNAL_STORAGE" /> & Lt; Use-permission Android: name = "com.google.android.providers.gsf.permission.READ_GSERVICES" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_COARSE_LOCATION" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_FINE_LOCATION" /> & Lt; Uses - Features Android: glEsVersion = "0x00020000" Android: required = "true" /> & Lt; Android: Android: icon = "true_android": icon = & Lt; Meta-Data Android: name = "com.google.android.maps.v2.API_KEY" Android: value = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> gt; & Lt; Activity Android: name = "com.eema.MainActivity" android: label = "@ string / app_name" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; & Lt; Activity Android: name = "com.eema.MapViewActivity" android: label = "@ string / title_activity_map_view" & gt; & Lt; / Activity & gt; & Lt; Activity Android: name = "com.eema.NoConnectionActivity" Android: label = "@ string / title_activity_no_connection" & gt; & Lt; / Activity & gt; & Lt; Activity Android: name = "com.eema.ShelterActivity" android: label = "@ string / title_activity_shelter" & gt; & Lt; / Activity & gt; & Lt; Activity Android: name = "com.eema.FuelStopActivity" android: label = "@ string / title_activity_fuel_stop" & gt; & Lt; / Activity & gt; & Lt; Activity Android: name = "com.eema.DirectionsActivity" android: label = "@ string / title_activity_directions" & gt; & Lt; / Activity & gt; & Lt; Activity Android: name = "com.eema.EvacRouteTableActivity" Android: label = "@ string / title_activity_evacc_rout__table" & gt; & Lt; / Activity & gt; & Lt; / Application & gt; & Lt; / Reveal & gt;   

Is this keystore that I have a release keystore file that was generated, I need to get keystore from it if so?

Are you just looking at the gray screen ... it's almost certainly the API key which is incorrect is. The emulator uses debug keystore with androidebuqi, so you should create an API key for this. Remember to change the app when you publish it in the market.



No comments:

Post a Comment