• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

onCreate question

23tony

Well-Known Member
I have a simple map app that I've been using, and I've noticed that I lose pins and routes if the app is backgrounded for a while. I can background it for a minute or two without a problem, but it clears everything to a fresh start if I leave it for 30 minutes or so (I don't know the exact time before it clears). From what I can tell, the activity is calling onCreate again. I also noticed this happening with rotation.

I was wondering if there's a certain time limit that cause onCreate to be called again? Is there any way to change that if there is?

Part of the point of this app is to provide a map that remains loaded while traveling through areas with no service, so I'm trying to avoid reloads as much as possible.
 
Back
Top Bottom