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".
Related
I have create a project which is using Google Map Api. By me all is working good but when someone get my code from GitHub there is a problem with authentication and map isnt showing. How anyone idea what i'm doing wrong? There is the issue from android studio which download the code from githube.
You can try to generate Server Key instead of android key this will help you out and never face this problem with anyone who download your project.This will always help me out.
The generated API Google Maps key is related to the certificate which will be used to sign your Android app
so your colleagues are using their own debug certificate to sign the app after they have checked out the code from github, that is the reason why the maps api key does not fit
So they should create their own api key and you should not check in your api key in you github repo
You can get his Pc id and ganarate a api key for that pc, then add it to your git repository ,, and dont forget to change the key in manifest
Generally created in android studio, a custom application MapActivity, already 4:00 I get it I can not nastroit.V file "google_maps_api.xmp" put the key that was commented above
To get one, follow this link, follow the directions and press "Create" at the end: https://console.developers.google.com/flows/enable... You can also add your credentials to an existing key, using this line: D0:27:4F:13:7E:3A:0A:85:36:D5:4D:44:31:DC:6F:8A:02:7E:5C:3B;com.example.dd.map Once you have your key (it starts with "AIz"), replace the google_maps_key string in this file
that's the key "AIz" I bet when you run applications run tools for viewing Google maps (zoom, zoom out), but the card will not run? Maybe it is necessary to connect to the file, and if so, how? And then how to put all the lessons Google maps, but they are all old, and how to configure them is not written anywhere, and they are all old, tell me how to make what they were loaded?
Have you enabled the Android Google Maps API for your app from developers console? https://console.developers.google.com/ ? That should be the first step. You can do that with the code you have pasted. You can replace the API key (starting with "Alz" . Once you do that, the MapActivity will start working. You should also have google play services enabled. Make sure these are mentioned as dependencies in your gradle build files. Check this thread Android Google Mapview Activity not opening in Android Studio
I generated MD5 and SHA fingerprint for my android application. Then I went to google to get an map api for android with SHA. Because I havent seen any place in google to get api with MD5. Even I set INTERNET permission in manifest file and define my layout as below ,google map is not seen in my activity
<com.google.android.maps.MapView
android:id="#+id/mapview1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="AIzaSyCfaFYAg1ql6hHN..."
Furthermore I saw in a article that if I get api key with SHA fingerprint it will not work. But Google asks for only SHA for api key.
if the map is not showing up then it is something with your key. You need 2 different keys, one for when you debug and one for when you release to the market
Let me answer my question which I was expecting to get a solution from SO society.
Be sure you have installed Google Play servise
Then get the google-play-services_lib from C:\Program
Files\adt-bundle-windows-x86_64-20130219\sdk\extras\google\google_play_services\libproject\google-play-services_lib
as Android Project From Existing Code into your workspace
Add this to your project Library as
(Project->Properties->Android->Library->Add)
And then all you need to complete using google map in your app is
getting a key from google. Just enough to follow instructions at the
bottom of Creating an API Project at https://developers.google.com/maps/documentation/android/start#the_google_maps_api_key
That's all. have fun with SO
Hi i am new to android application development. I did a google map v2 to show my current location using GPS.
It will work fine when i testing with mobile using USB cable
but the issue is when i convert my application into .apk it will retrive my gps current >location but did not show the map
Can anyone help to resolve my problem?
for generation .APK you must have to use keystore & MAP API KEY from same machine. if this two are diffrent from diffrent machine then it 'll heppend.. (mean MAP are not show)
if you have diffrent keystore then you can get MAP API Key from Keystore.
check below links:
How can I get the MD5 fingerprint from Java's keytool, not only SHA-1?
https://stackoverflow.com/a/5262845/1168654
Edited
open this link: follow steps on "Getting the MD5 Fingerprint of the SDK Debug Certificate" then sign up from this link : after that use that map key in you code see what heppend.
This suggests that either you do not have the Google Play Services referenced in the project properly or your device doesn't support it.
Please read the Quick Start on how to properly reference the jar in your project.
i have made an android application and in it , there is one scenario when the user clicks on an address and that address shows up on google maps.
Now when i tested the application on the emulator, the google maps did load properly, but now that i am trying the same on my htc desire z, the maps is not loading.
Although the maps application which came built-in in my phone is loading google maps correctly.
what could be the problem? why is my application not able to load the map view?
thank you in advance.
EDIT: i have obtained a google map api key and have included it in the mapview that i am using.i have added overlays and etc. It is all showing fine on the emulator , but on my device it is not showing any maps. The overlays are visible.
There is a difference between a debug maps API key and a release maps API key. With the first it will only run on the emulator.
Unless you have visited the Google site twice (once to get a key which matches the debug keystore and once to get a key which matches your release keystore) then you haven't got a release key and your app won't run on real device.
Our Android developers were also facing this problem. We solved the problem like this:
We generated API keys from each machine and added the Key to their respective main.xml file. So each developer had a separate api key.
We started the emulator from the command line using the android "emulator" command which is located in the tools directory and started with the proxy option instead of starting it from eclipse, eg :
E:>emulator -avd New_Device -http-proxy http://202.0.0.203:808
Most probably, you didn't register your application into the system. This is the link.
http://code.google.com/android/add-ons/google-apis/maps-api-signup.html
If this is not the case, please provide the error details from Logcat.
You need to get an API key from Google.
Here is a good article that explain how to obtain API key.