Android Api With Google Map Displays Grid
Solution 1:
If you writing you application for API V2 then you are using the wrong objects, few things you need to fix:
1. Remove this:
<uses-libraryandroid:name="com.google.android.maps"/>
it's a permission for Google Map API V1.
2. you have to add this 2 permissions:
<permissionandroid:name="your.application.package.permission.MAPS_RECEIVE"android:protectionLevel="signature"/><uses-permissionandroid:name="your.application.package.permission.MAPS_RECEIVE"/>
change: your.application.package
to your current application package.
3. As you targeting SDK v8
, you have to add fragment support to your application in order to use the SupportMapFragment
from Google Map API V2, So you need to add google-support-v4
and change your map object to SupportMapFragment
.
4. Your MapActivity
has to be changed to FragmentActivity
.
5. You can can get more information on how to make those changes in a blog post I wrote on how to add Google Map API V2 to your project:
Solution 2:
Your problem is related with the emulator, you need to install to APK's. I had similar problems so I prepared step by step tutorial to show how you can use google map android v2 on emulator(android 4.2.2) have a look at to my blog: http://umut.tekguc.info/en/content/google-android-map-v2-step-step
Solution 3:
You need to generate MD5 fingerprint from java keytool instead of SHA1. Check this post to generate MD5 fingerprint: How can I get the MD5 fingerprint from Java's keytool, not only SHA-1?
Post a Comment for "Android Api With Google Map Displays Grid"