Tuesday, August 7, 2012

Android Tracking Time - Part 3

In a previous post, I extended the basic hello world app from the android development site.

In short, I could keep track of how long my application was in one activity or another by saving the times when either onResume(), onPause(), or startActivity() was called.  By keeping track of these event milestones, I could calculate how long my main activity was in the the foreground or not.

At this point, I think I have a fairly good understanding of the Android App life-cycle as an app is created, resumed, paused and closed.  At this point, I think it might be a good idea to learn how I can store data that will persist beyond this life-cycle.

No comments:

Post a Comment