Hi, use onStart() or onResume() instead of onCreate() depending on what event you actually want to count.
http://developer.android.com/guide/topics/fundamentals.html#actlife On 29 ноя, 04:58, Kang <[email protected]> wrote: > Hi all, > > What I want to do is to log whenever user launches my app. So, I > instrumented a logging code(which make a request to the server) into > onCreate() of the base activity, and the server counts the requests. > > However, the problem is that the code wasn't called if user press home > key rather than back key. > > More specifically, > launch the app -> onCreate() is called -> press home key -> relaunch > the app > => onCreate() is NOT called. > > Is there anyone who know where I need to add my logging code? > > Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

