How do I test an update of my application, versus a clean install? I see that adb install has several flags, but I’m not sure which one mimics reality.
I explicitly need to test app updating.
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 don’t need to re-install to get a ‘clean install’, you can just wipe the application’s data.
Go to Settings > Applications > Find your app and use ‘clear data’ (or similar). At that point your app won’t know the difference unless you are also using files on the SD card.
And, of course, app updating can be tested by installing normally (or, with adb, you can use
adb install -rfor installing while keeping the app’s data, as you would on the market or with an APK)