I am developing an android app and I want to know how many times it has been opened. Is there a way to do this?
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.
1. For a simple approach, keep a
text filewhere you increment the value by 1, after reading it. Keep the count increment onOnCreate()method of Activity2. You can use
SharedPreference.3. Well
DataBasecan also be used…but i think that too over-kill for this….