in my app i am trying to show the current location in a map. I followed the instructions in his link
When i run the app from my eclipse to my device by the run config, I am able to view the map and the current place where i am located.
But when i created a .apk and aligned.apk file of my app then i am not able to see the map.
When i was searching through stack overflow i came over the following question
and followed those answers but still i am not able to see the map, it shows only a squares
how to solve this issue
The only reason for this problem is with the keystore which you generate while exporting the apk... Select the already existing keystore androiddebug.keystore available in the android folder... Also remember that you should have valid api key with you..
its better to do in this way
Select the project in workspace-->rightclick---> click export--->export android apps-->next-->next--->enter keystore file name--->next--->enter key alis--->finish
Related
I know this question was already ask 100, 1000-times, but still I have a problem with it and I already tried a lot by signing the application and to visualize the map after putting them in the store.
What I actually want is the following: Putting the android application in the store under "Alpha" version. This works without a problem, the application works, the only thing that doesn't work is the google map, its a white screen, I think the problem is that there is something wrong with the signed api key, but I don't know what.
Firstly I did the keystore with this dialog.
Afterwards I generate the SHA1 value for the google map api key with this new keystore. Putting the SHA1 value into the console.developers.google.com link under credentials to generate a PUBLIC API ACCESS key under the following format: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX;PPP.PPPPP and then I generate a key and copied this in the manifest file.
And finally I either generated a signed apk for the store or directly signed it by building it for the smartphone.
But still it doesn't work. I don't know what the problem could be... Maybe one of you can help me.
OK guys thanks for your help I found the error... Don't know how it came to this error but still I found it.
As you may know android studio will generate you an google_maps_api.xml file. When I opened the file there was the key written "ALZ...." but when I check in the multi languages place, there was written "YOUR_KEY_HERE", so something went wrong... After putting the key in the multi language place it worked :)
I had a similar problem (since the key generation was device specific). I don't know whether its the best answer or not but following solved my problem:In Google Developer Console(after creating project and enabling apis), I generated a browser key without entering any ip and used that as my key.That solved my issue.
My android app is using MapView and hence using the google api's.
Problem is that for testing my app I have to export apk file with my keystore , install the app in device and then run it for checking the output and it consumes a lot of time.
Is there a better way to do it using eclipse??
yes there is.
create a a 'debug maps key' using the debug.keystore located on your user folder, something like:
/Users/<username>/.android/debug.keystore
Follow the lines on this page https://developers.google.com/maps/documentation/android/mapkey#getdebugfingerprint
And register a map key for debug here
https://developers.google.com/android/maps-api-signup
This way, you'll get a debug map key which you can use for your mapview during debug.
For my final year project i am making an android application (Mobile based tracking for personel optimization). Application is heavily dependent on tracking of user for this purpose i need google maps to be appeared on emulator. So, to generate the finger print i need to give the path of file debug.keystore through command prompt but the problem is that i dont know where this file debug.keystore is actually located in my system. I will appreciate your views if you have any idea to overcome this problem.
If you're using Eclipse, you can see this by going to the Window menu and selecting "Preferences" then expand the Android tab and select "Build". There it will show you the path to your debug keystore.
It defaults to
HOME_DIR/.android/debug.keystore
I'm busy with adding a Map View in my android application. I'm trying to get this running on my AVD but I can't get this to work.
I'm following this tutorial: click here. I have to install the Google APIs add-on, so I used the Android SDK Manager to find the add on, but it's not there?
What to do??
Are you including the key in your layout XML (where you have the mapview) that you had to generate from your debug keystore to get the map image to show up? If not, you'll need to do that and you'll need to generate another version to work with your final (non debug) keystore for when you package the .apk.
Here are the instructions from google: http://code.google.com/android/add-ons/google-apis/mapkey.html
I hope that I can be clear; I know there are a lot of threads on the Google Map API, but I have exhausted my brain trying to fix my problem with the maps. Please tell me what I have wrong here.
I understand there are two Google Map API keys.
1) API key, for a market published app. Maps will appear once the app is published.
2) Debug API key, only works on emulator or side loaded to the phone for testing.
My partner and I are working on an app together from different PC’s. We each have our own debug api key.
1) He sends his app folder from his .android folder
2) I drop the files into folder in my .android folder
3) I import the project into eclipse
4) Replace his API key with mine.
5) Run application
He gets maps displaying on his application, but I do not. I get the gray grid.
Do I need to build a new APK of the app before the maps will appear? Does this new APK have to be created exactly like he did his?
Does the path to my APK need to be in the same folder as my keytool.debug?
How does the fingerprint relate to the APK?
Please clarify, we are stumped.
The maps API key is linked to the keystore which was used to register. You will need the debug.keystore that was used to register for the API key. Here are some quick instructions I found on how to do this.
Sharing one keystore is much easier than changing the reference to a new maps API key every time you make a revision. I'm not sure why your method isn't working though.