40

Is there a way to use the offline mode in Android apps using the Google Maps API?

Any direction to a tutorial or source code would be a massive help. I've been searching for hours without any luck. I know Google has released a way of using maps offline, but is it available for Android developers?

3
  • 1
    It is not available for third party app developers. There are certain ways you can force cacheing but they are in violation of google's terms of service. Commented May 13, 2013 at 15:37
  • 1
    What about preloading maps before entering low internet areas? Commented May 14, 2013 at 9:19
  • I have the custom tiles, need to show them but getTile() does not get called on the first launch. I need to show custom tiles on first launch in airplane mode. can somebody help? @PropK Commented Dec 7, 2016 at 18:10

1 Answer 1

39

See this solution or this one. Basically you just create your own tileprovider and access tiles locally. It is totally doable with the v2 API. API Reference

There's some false information floating around out there that the v2 Google Maps API requires an Internet connection. There was a but where the API would require a single access after app install to verify with Google Play services, but I believe this has been fixed.

See this and this.

Sign up to request clarification or add additional context in comments.

3 Comments

@Simon 2nd link is shifted here
I have the custom tiles, need to show them but getTile() does not get called on the first launch. I need to show custom tiles on first launch in airplane mode. can somebody help? @AjithPandian
You need to connect to the maps API at least once to make cache of tiles. GoogleMaps API does not alow storing tiles outside service. You can see this here [developers.google.com/maps/terms#10-license-restrictions] refer 10.5.d.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.