I need to know if there’s a way to run a piece of code in my app only first time when the user installs my new updates from market(google play) ?
I need to run the code once each time I upload a new version of my app ?
Thanks for reading.
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.
Use SharedPreferences to store the last version and the current version of your app, and run the code once on every version change. Something like: