Hola,
I am trying to get the maps to work, it appears to work fine the the Nexus 6 emulator, however when I run it on a Moto G or a Samsung Galaxy the map is completely bank - it just contains the google logo in the bottom corner.
I have generated a google maps key and put that in my google_maps_api.xml file. Do I have to generate a SHA-1 certificate fingerprint? If yes, how do I do this?
See answer: https://stackoverflow.com/a/33691443/5387193 I don't quite understand the instructions.
Here is my log: http://textuploader.com/52xzy
Edit 1: Added line to AndroidManifest.xml
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
It is now working on my Moto G but not on my Samsung. I think because I haven't accepted the sensitive information permission (ACCESS_FINE_LOCATION).
This app I am working on does not need to know the GPS location of the user, so I don't really need this sensitive information - is there an easy way to remove this function and permission?
I think the permission is causing the problems.
Edit 2: I have got the code:
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
in my AndroidManifest.xml, the @string/google_maps_key
is a correct key that I have generated. I have generated a SHA1 fingerprint to get the key, do I need to put the fingerprint in my code somewhere?
I haven't generated a release key, I think it is just a debug key. Do you think this might be the issue?
I will setup google play services and see how that affects it.
Edit #3: Uninstalled and reinstalled Google Play Services on Samsung and now it is working.