android - Google api map V2 not displaying with signed apk in device -


i displaying map using google map api v2 displayed in device when running through pc signing application via export signed apk , made .keystore , .apk , made certificate , using apk file , runnning application map not displayed showing white screen, made release key using http://developer.android.com/tools/publishing/app-signing.html , succesfully performed steps given in link map not displaying, please help.

thanks.

you need sign maps release key ;) signed map debug.keystore

how google maps api v2 release key

google maps v2 getting started

my public class ventanamapa extends fragmentactivity when private googlemap mmap;

status = googleplayservicesutil             .isgoogleplayservicesavailable(getbasecontext());     intent intenterrormapa = null;     switch (status) {     case connectionresult.success:         supportmapfragment supportmap = (supportmapfragment) getsupportfragmentmanager()                 .findfragmentbyid(r.id.map);         mmap = supportmap.getmap();         mmap.setmaptype(googlemap.map_type_normal);          mmap.getuisettings().setzoomcontrolsenabled(true);         mmap.getuisettings().setcompassenabled(true);          new obtenerenvio().execute(_empalbaran, _codalbaran.tostring(),                 _lineaalbaran.tostring());         mmap.setmylocationenabled(true);         break;      case connectionresult.service_missing:         toast.maketext(ventanamapa.this, r.string.errormapaservicemissing,                 toast.length_long).show();         break;      case connectionresult.sign_in_required:         toast.maketext(ventanamapa.this, r.string.errormapasignrequired,                 toast.length_long).show();         break;      case connectionresult.service_version_update_required:         toast.maketext(ventanamapa.this, r.string.errormapaserviceupdate,                 toast.length_long).show();         break;     case 999:         toast.maketext(ventanamapa.this, r.string.errorcargarmapa,                 toast.length_long).show();         break;     } 

my map.xml:

`<relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".mainactivity" >  <fragment     android:id="@+id/map"     android:name="com.google.android.gms.maps.supportmapfragment"     android:layout_width="fill_parent"     android:layout_height="100dp"     android:layout_above="@+id/imagebuttonanteriormapa"     android:layout_alignparenttop="true" />  </relativelayout> 

1) create release key, sign app. sha1 have need go google api console. create new android key sha1_number;your.package 2) key need add in manifest like: <meta-data android:name="com.google.android.maps.v2.api_key" android:value="your_key_for_release" /> put code before </application> that's it. check logcat see message recive google maps


Comments