Testing an adb update, versus install?

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.

  • Android: Fragments backStack
  • How to know when the RecyclerView has finished laying down the items?
  • Why is Eclipse and ADB not recognizing my Android Device?
  • what are the uses of main, default and launcher in manifest file in android
  • Knowing when a View in a ListView has gone off the screen?
  • stream volume in SoundPool vs volume in AudioManager
  • Related posts:

    Android - border for button
    Minimum screen resolution for Android devices
    Video is not showing on VideoView but i can hear its sound
    Unknown error code during application install “-505”
    How to force GridView to load cells
    how to align center a bitmap inside a canvas in android?
  • Java reflection handling library changes
  • Failed to load AppCompat ActionBar with unknown error in android studio
  • Handling onNewIntent in Fragment
  • Develop Alarm Application
  • How to get status code in successful response Volley Android
  • How to add share button in android?
  • One Solution collect form web for “Testing an adb update, versus install?”

    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 -r for installing while keeping the app’s data, as you would on the market or with an APK)

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.