Maroon5Five
Maroon5Five

Reputation: 147

Save map zoom and location in Android

I have an app that uses the google map, and I am looking for a way to save the location that the user is currently at so that when they bring the app back up they will be right back where they left off. I have searched the internet and I guess I am not searching with the right keywords, or maybe it can't be done in the way I was hoping to do it.

Upvotes: 1

Views: 774

Answers (1)

tyczj
tyczj

Reputation: 73798

Just save it in SharedPreferences, save the latitude as a double save the longitude as a double and save the zoom level as an int

Upvotes: 2

Related Questions