问题
Here I write some application, which shows my location.
In the emulator I get this:
But in device I see this:
I connect through wifi, hence there's no problem with internet, it should have opened the map.
What is the reason? How can I solve this?
Thanks.
Addition
I just regenerated my API key with keytool. Got the same key I had before.
Still the same view in the phone.
回答1:
Its Google map API key issue you have to re-generate the API key using the keystore which you are using to export your apk.
Here is how to generate your Maps API Key for final release.
回答2:
Try opening the default google map application on the device and see if you can load up the map. If you can't then there is some problem with the connectivity. If it is opening the default application then the issue could be of the API key for google maps
回答3:
Add to manifest:
<uses-permission android:name="android.permission.INTERNET"/>
来源:https://stackoverflow.com/questions/10520791/getting-grid-view-in-google-maps