How to add a buffer to google map v2?

Asked

Viewed 98 times

3

I followed several tutorials and one of them worked out however, when compile appears the normal Fragment with the name google in the bottom left corner of the screen (normal), except that nothing map :( ... When I am in a good connection with the internet there are times of right...(ah! easy.. the problem is on the net!!! ) well.. I believe not because ALL apps that need to net load booa up to google map ...just not mine. Therefore, I believe that there should be a kind of buffer for google map v2, if that is the case, someone knows how to adapt a buffer to the map?


So...already has all the permissions added and the manifest is configured according to the various tutorials I saw...searching, I saw that my problem can n be a buffer or cach and yes a Key API, which by the way is also configured as in the tutorials, I had to get Key through SHA-1, at first I did it by debug.Keystore so I wanted to publish the app so I created a private Keystore and got the Key API, I used in the application as the tutorials and continues only showing the name google in the bottom left and no map, in the log comes the following message: Authentication failed. Timeout while trying to contact the server.

1 answer

2

So Google Maps for Android works cached as soon as you start it automatically does it for you, but of course you have to add some permissions so it can do this.

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

This is one of the main ones for him to be able to cache. See also how you are configuring your manifest if everything is correct.

Google Doc:

You must also request the android.permission.WRITE_EXTERNAL_STORAGE permission.

Follow the link Google Maps Android Configuration

  • Obs: From play services 8.3 this permission is no longer required

Browser other questions tagged

You are not signed in. Login or sign up in order to post.