I have developed an android app that uses google map ,but when I run the app the map doesn't show anything!!!
I know its a problem with my API key but i can't get it right, here is how i get it:
1) from eclipse >> window >> preferences >> android >> build then i find my SHA1 fingerprint.
2) i go to the google API COnsole and make sure i chose the google maps for android v2 is selected.
3) create new android key and pasete my SHA1 fingerprint and my package name.
please help me :)
you can download my project from link below:
https://www.dropbox.com/s/ppx4iwvpqr3wvq3/android-my-map-location.rar?dl=0
Please refer to this tutorial which has a lot of pictures and graphics in order for you to explain the whole process. Its pretty short and clear.
Hope this Helps!!
You are using Google Maps Android v1 API in your code that has been officially deprecated and you will no longer be able to request an API key for this version. Use this Guide to achieve Google Maps Android v2.
Related
Need help , tired of following the tutorials but still no results. I am using android studio and trying to make map app. Tried using the map template in studio as it is just by entering my key bt no matter what i do , i get the same results, blank screen with google log. Google maps console shows zero request from my key to accces maps.
you must add api key, for this need register your application in the Google Developers Console
https://developers.google.com/maps/documentation/android/start
For starters, you need to create a project on Google Devlopers Console.
See this tutorial.
Thank you devs for support but I solved my problem myself by digging whole day , after implementing maps layout activity and manifest and other required files , the app should be build with the keystore provided in android sdk itself instead of our own keystore. keystore path - C/user/{username}/.android/debug.keystore with alias as "androiddebugkey" and password as "android".
I'm trying the HelloGoogleMaps project from this official google tutorial, and I get the applicaiton running just fine, 'cept the map isn't showing; instead you can see a grid without any data. Doing some research I found that the API key could be malfunctioning; I must have done something wrong. But I dont know what it could be, as I followed the instructions given in the Google Developers Console. Here's what I did to get the key:
I clicked on Create New Key
I clicked on Android Key
I discovered the SHA1 fingerprint of my developer certificate using the following command:
keytool -list -v -keystore C:\Users\Viktor.android\debug.keystore
I copied the SHA1 certificate and pasted it as the example shows:
45:B5:E4:6F:36:AD:0A:98:94:B4:02:66:2B:12:17:F2:56:26:A0:E0;com.example
I got the key and placed it in res/layout/main.xml
I did make a OAuth 2.0 Client just in case, and also activated the following APIs in Google Developer's console:
Google Maps Android API v2, Google Maps Coordinate API, Google Maps Geolocation API, Google Maps JavaScript API v3, Google Maps Tracks API.
Maybe there is some conflict? Maybe its something version related?
The minimun sdk is API 10 Android 2.3.3 Gingerbread.
The target sdk is API 21 Android 4.x (L Preview), and selected Google APIs 10 to compile it.
There is a mess with the versioning, and all tutorials and solutions I find are not updated, even google tutorials refer to old versions. Anyone can point me in the right direction?
SOLUTION
Emulators won't work, as they dont have a GPS or anything, so the best thing is to use a real android device. I tried the answer below, with the genymotion thing and got no result.
Inbuilt google Emulator will not support google map. Try installing Genymotion emulator and try again.
Also API v1 is deprecated. Try going over the steps mentioned in google site for api v2 https://developers.google.com/maps/documentation/android/start#getting_the_google_maps_android_api_v2
In one of my project I am using Google-map. It is asking the API key, how can I get it? Can I complete the project without that key? All other things are working fine.
Thank you for any help...
If you dont have the api key of google maps your map not load.
You can see this link to create de key and insert it in your project.
you need to create project in google console and enable the credentials there you can create the api key follow this link
https://developers.google.com/maps/documentation/android-api/start?hl=pt-PT#obtain_a_google_maps_api_key
I tried to integrate Google map API with android native application. But I got only grid only, I can't get the map. Please help me to solve this problem.
Grids are shown because your key is not correct.Use the true key for your project which is registered in Google Project Console.
If you are getting only grid instead of the map, usually it's Google Maps Authentication problem. To solve it I would suggest you to go over the following guide:
Google Maps API V2 key
Follow all the steps of the guide and reproduce the key.
Next, follow this guide as well:
Google Maps API V2
to create application that integrates Google Maps API V2. Don't forget to remove the current installed application completely because Google Maps V2 caches the key you used before.
I am working on location based service project. I want to use maps in my emulator.In my emulator I can't see maps application. How can I see maps in my emulator.
Are you using Proper API key for map? If no, just take from that link. You can't use others map api key and also. So, just try the new API key.
Check whether you're using proper SDK for Google maps -
the AVD prepared might not be of googleapis so might be the problem.
Make sure you have created AVD with
Google APIs(Google Inc.)