Search code examples
androidpublishadbsimulate

How to test what will happen when you publish an update to your app to the Market


I'm about to publish a new version of an app to the Market. In order to avoid any potential problems once its been pushed to the Market and people get notified of an update, I'd like to simulate that process on my phone using the .apk for the new version of the app I'll be publishing.

For instance, it has an update to the SQLite DB it's using.

The closest I can find is using the Android Debug Bridge (adb) using the command: adb install C:\myApplication.apk with my phone attached to my PC via the usb cable. (the parameter represents wherever your apk file is on your PC).

When I do this, if the app is already installed on my phone, I get an error message:

Failure INSTALL FAILED ALREADY EXISTS.

If I delete the existing app from my phone, the adb install command works fine. So, it looks like this can only be used to install an app that doesn't currently exist on your phone.

Is there any way to simulate the update process? It'd be nice if there was an adb update command, but I don't see that.


Solution

  • I think your error is because you have the market signed version installed and your trying to install a debug signed version. If you sign it with your market key it should install fine.