I’m integrating with Mixpanel, which lets you track arbitrary events for your app. I want to track how often the Android app is opened.
Is there a central place where I can put code that runs every time the app is opened, regardless of activity?
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.
You can track if it was started from the launcher by tracking Intent parameters in your Main Activity.
Or if you want to track how many times this screen was started, u could put your tracking code inside onStart of your activity.