How can you tell if an activity is starting or resuming?
- by Joren
I have an activity which pulls some JSON from my server, and then uses it to draw a list. That list launches further activities.
My problem is that I can't figure out a way to tell if the activity is still alive when you go back to it, so I end up re-querying my JSON from the server and redrawing the list every time the user goes back to the activity.
How can I tell if my activity is still alive so I can skip the redraw?
Using onRestart works for hitting the home key then going back, but onCreate not onRestart is called if I selected a list item then hit back.