Wednesday 15 January 2014

Google map not showing on android (signed apk) with Google V2 release key -


I'm following all the right steps API key is obtained from the following steps I already testing purposes I'm more Apike on the market, but still does not display a map, although it displays a map with the debug key but when I release tried to use key Google Maps Jhumin and Zoom buttons of See the white screen, but no maps

MapFragment

  public class CustomMap extends SupportMapFragment {private static final int ZOOMIN_ANIMATION_DURATION = 300. Public static custommap new instrument () {bundle bundle = new bundle (); Custommap custommap = new custommap (); CustomMap.setArguments (bundle); Return custommap; } @ Override Public Empty on Activity Crateed (Bundle Saved Instantstate) {Super. On-activity creativity (saved instenstate); } @ Override Public Records on Resum () {Super. Rebirth (); GoogleMap googleMap = getMap (); If (googleMap == faucet) {} else {letting mltlng = new wave long (70.00, 33.00); googleMap.addMarker (New MarkerOptions () .title ( "title") .snippet ( "address") .position (mLatLng) .icon (BitmapDescriptorFactory .fromResource (R.drawable.ic_launcher))); GoogleMap.moveCamera (CameraUpdateFactory.newLatLng (mLatLng)); GoogleMap.animateCamera (CameraUpdateFactory.zoomBy (10), ZOOMIN_ANIMATION_DURATION, blank); }}   

}

The main activity

  public class MainActivity extends FragmentActivity {@Override protected void OnCreate (Bundle savedInstanceState) {super .onCreate (savedInstanceState); SetContentView (R.layout.activity_main); } @ Override Public Boolean On Crate Option Menu (Menu Menu) {// Enhancing Menu; It adds the item to the Action Bar if it exists GetMenuInflater (). Fluo (R. menu menu, menu); Back true; }}   

XML

  & lt; Relative layout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: device = "http://schemas.android.com/tools" Android: layout_width = "match_parent" Android: layout_height Android: paddingBottom = "@ Dimen / activity_vertical_margin" Android: paddingLeft = "@ Dimen / activity_horizontal_margin" Android: PaddingRight = "@ dimen / activity_horizontal_margin" Android: paddingTop = "@ dimen / activity_vertical_margin" tool: reference = ". Main activity "& gt; & Lt; fragment android: id = "@ + id / fragment1" Android: layout_width = "match_parent" Android: layout_height = "match_parent" android: layout_alignParentRight = "true" Android: layout_alignParentTop = "true" class = "com.example.maptest. Kstmmap "/> & Lt; / RelativeLayout & gt;   

appear

  & lt; Uses - sdk android: minSdkVersion = "8" Android: targetSdkVersion = "17" /> & Lt; Uses - Features Android: glEsVersion = "0x00020000" Android: required = "true" /> & Lt; Permission Android: name = "com.baresso.permission.MAPS_RECEIVE" Android: protectionLevel = "signature" /> & Lt; Use-permission Android: name = "android.permission.ACCESS_WIFI_STATE" & gt; & Lt; Uses / Permissions & gt; & Lt; Usage-permission Android: name = "com.baresso.permission.MAPS_RECEIVE" /> & Lt; Use-permission Android: name = "com.google.android.providers.gsf.permission.READ_GSERVICES" /> & 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.ACCESS_FINE_LOCATION" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_MOCK_LOCATION" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_COARSE_LOCATION" /> & Lt; Android: Android: icon = "true_android": icon = & Lt; Activity Android: name = "com.example.maptest.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; Meta-Data Android: Name = "com.google.android.maps.v2.API_KEY" Android: value = "AIzaSyDcAy3bEVhv_lhAH1hHNHk_RpvyXiN0xNI" /> & Lt; / Application & gt; & Lt; / Reveal & gt;    

  1. I think that Problems Getting the API key with SAA-1 finger print or
  2. Have you installed the application package with SHA-1 fingerprint
  3. The Google Play service has been installed in its own emulator or Android device
  4. Please like Android device for map testing.

No comments:

Post a Comment