Gnanaprakasam
Gnanaprakasam

Reputation: 171

android google map view

i am using android Google map, the map is displayed in emulator but not in the device.. can any one help me to solve the problem.

Upvotes: 1

Views: 359

Answers (4)

Udit Roy
Udit Roy

Reputation: 85

Make it as a signed application and uninstall the previous application, then install it again. This will work as I faced the same problem.

Upvotes: 1

Brandon Zamudio
Brandon Zamudio

Reputation: 2873

I had the same problem before, the question is that when we compile the app and get the release apk, google actually thinks that the app is released, so we have to get a release key to use it on real devices, but for a while to keep testing and developing the app, we should use the debug apk. To use the debug apk just go to:

YourApplicationFolder\app\build\outputs\apk\app-debug.apk

After compile or running on emulator.

Upvotes: 1

user1381420RKS
user1381420RKS

Reputation: 149

This is the problem of Wrong map key.

You have to find your debug.keystore file path and then you have to generate google map key.

              In windows: 
              The debug.keystore is mostly found at :
              C:\Users\UserName\.android\debug.keystore

              Same is in ubuntu, means in home\user\username\.android\debug.keystore

              For conveniency: 
              You can download the "Keytool plugin" in android to get the md5 fingerprint.

              After getting md5 fingerprint, You can obtain the map key from here:

              https://developers.google.com/android/maps-api-signup

Upvotes: 1

Dinesh Sharma
Dinesh Sharma

Reputation: 11571

I think you have used the debug key(for generating the unique key). Try to use release key instead. Use the following command:

keytool -list -keystore fileName.keystore

on command prompt to generate the release key. For more details see http://code.google.com/android/add-ons/google-apis/mapkey.html.

Hope this will work for you.

Upvotes: 0

Related Questions