I am running sample code that is provided on Google Map Documentation for Google Map Api v2.The Code run successfully but Map is not loaded on the Device. Only White Screen is Shown on the Device. I am using 2.3.6 version android device.
Please Help me to resolve the issue
Check if u have the map key for the package name u provided while creating the map key.
I was getting white map screen but i inserted map key of the package i was testing.
Then i created new project but used the previous map key hence getting white screen.
Always remember you have to use new map key for each package you create. Genereally people forget that thing..(atleast i forgot to generate new key for new package).
Hope this will solve ur problems.
All the best
Most likely you're using release SHA1 fingerprint for generating Google API Key. Since you're using Eclipse for debugging your application is signed using debug key. So, you should use debug key instead to generate Google API key.
As soon as your app will be ready for publishing - just switch to release key.
Related
I've been using Google Maps SDK for Android. I've recently used the Google Map API. Each time i run on a different PC.The MAP just does'nt work and it gets resolved if i go and create or instantiate a new API key. Why is it so?
No need to create new APi key only add or update sha1 key because for debug build sha1 is different on different PC. For reference
Click here!
I have extracted MD5 fingerprint .Now I want to obtain the Google Map key but link is not working. I found http://code.google.com/android/maps-api-signup.html in Wei-Meng leebook Beginnining Android 4 Application Development latest publication to get the Google Map key.Can anyone update the new link to get the Google Map key. I googled it but not able to find it.
Here is screen shot for creating map key
make sure u hv this :
Use this link...and go to Services turn on the service named Google Maps Android API v2,
then go to API Access
Now Click on Create New Android Key
after that Paste your SHA1 key ; and your project's package name
for ex: YOUR_SHA1_KEY;com.example.xyz
And lastly click on create.It will generate your google map key for you.
You have to refer Google official site.
You can also refer step by step process how to generate google map api key and used using this So question.
If you are reading careful then 100% your problem is solve.
If any query then put comment.Happy coding.
I created one application and generated an api key, which worked and my app correctly renders map.
I created a second application, which is based on an Android Library project I created and I want to reuse the API_KEY of the first app. In https://code.google.com/apis/console, for my API debug project, I selected "Edit allowed Android apps...".
Then on a new line, I added the SHA1 certificate fingerprint and package name (separated by a semicolon) of my second project. So now that API Access key has the fingerprints of two apps associated with it.
However, when I test the second app on my android phone, logcat outputs
Google Maps Android API Authorization Failure.
The Certificate fingerprint of my second app is correct. My second app also references Google Play Services and is using Google API Level 16.
The second app manifest file is set up similarly to the first one, making reference to the debug API_KEY and having the same android permissions. What may I be doing wrong?
However, the recommended practice is to sign each of your applications with a different certificate and get a different key for each one.
https://developers.google.com/maps/documentation/android/start#getting_the_google_maps_android_api_v2
:D
I've previously found this helpful https://stackoverflow.com/a/13865113/935779
Make sure to export a signed copy with the same key you used to create your API key
This is often a problem when working with a Google Maps key and may very well be your issue. However, Nathvi is also correct from the documentation and you may consider a separate key if at all possible.
I am working on a Mapview in my android application, in which i have to show few lat long location with balloons on the map view.
It is working well in emulator and when I run thru my run configuration in my device too, but when i send the apk for other devices, the MAP view class do not generate MAP.
This problem arises only when I transfer the APK for other devices. The APK is Signed well with the authenticate signature.
Please let me know the cause of such prob.
The only reason I know so far for devices not showing the maps is related to the maps api key wich should be in your map layout with something like this: android:apiKey="Your Maps API Key goes here"
you can find the info here: Android MapView Tutorial and I will quote a bit of it that might be your issue:
For the purpose of this tutorial, you should register with the SDK
debug certificate, which will only be valid while your application is
signed with the debug key (once you sign with your private key, you
will need a new API key). When you get your key, insert it for the
value of android:apiKey.
I have attached a mapview to my layout and have a it showing a compass and my current location. The problem I have is, that there is no street map shown in the view, so basically I just see the compass and my current location over a blank grid.
When you run or debug through Eclipse your app is signed with your debug key which will have been automatically created. It is not the same as the key you sign your app with when releasing it.
You need to get an API key using your debug key.
See the 'Getting the MD5 Fingerprint of the SDK Debug Certificate' section on http://code.google.com/android/add-ons/google-apis/mapkey.html
Once you are ready to release your app, you replace the debug API key with the API key you are currently using.
Make sure you have the INTERNET permission and a proper API key. Either of those will give you the blank grid effect.
http://code.google.com/android/add-ons/google-apis/mapkey.html
Turns out the map is only shown when the app is signed and uploaded using adb install {path to app}, the same app didn't work when I run or debug using Eclipse.
Check out the followings:
1. include jar of maps.
2. generate your certificate and register it. It should work now
:)