Brian Armstrong
Brian Armstrong

Reputation: 19873

Publishing multiple updates to the android market

If you publish multiple app updates to the Android market, and the user hasn't downloaded them yet, will Android install each update in order when they finally do update or will they only install the most recent one?

The reason I ask is that we have some code to migrate from one data format to another. It would be nice to publish an update that does this migration, and then clean out our codebase to only use the new format going forward. It would be safe to do this is we could be sure the Android Market would install each update in order.

What do you think?

Upvotes: 0

Views: 130

Answers (1)

Cristian
Cristian

Reputation: 200160

Android Market app will fetch and install the latest version. So if user has version 1.0 and you publish 1.1, then 1.2 and then 1.3, when user tries to update the app it will get version 1.3 directly.

By the way, if what you are upgrading is a Sqlite database, the SqliteDatabase's getVersion method could be handy.

Upvotes: 4

Related Questions