I have a wizard app where user goes thru 8-10 activities but might drop off at any point. I need to detect user inactivity somehow, which could occur on any of the activities. What is the best way to capture and detect his. Thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d persist (using one of the recommended methods, ie SharedPreferences, SQLite, file etc) a timestamp and activity identifier (so you know which one they dropped off on) that you can grab later. Depending on how you define “inactivity” this should probably be set in either
onPause(),onStop(), oronDestroy().Full activity lifecycle link: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle