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?
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.
Related
I have implemented google In-app updates in my android project. There are two ways of implementing the in-app update.
1. Immediate and 2 Flexible.
I am using Flexible mode to update the app.
Now There is 1.0.7 version of my app exist in google play store which is updated one.I have retained version 1.0.3 in my app for testing purpose. Mean while There are five versions like 1.0.3, 1.0.4, 1.0.5, 1.0.6 and last 1.0.7 (which is latest version).
When I create signed apk and then it show alert to update the app in flexible mode, when I go for the update, after updating I restart the app and then it shows version 1.0.5 not the latest version which is on playstore (1.0.7).
Can anyone please tell me why it's not updating latest version(1.0.7).
Thanks in advance.
I have noticed that apps installed with Crashlytics Android Beta Distribution always reinstall app from scratch. Like all my preferences, databases, etc data get lost after each update of the app. Is there any way to configure the update process? Instead of a clean install to have it updating app the same way Play Market performs its updates.
When updating builds in Beta, a normal update should happen and non of your data should be lost.
I have built an android tablet application which is installed only from my web site - manual install.
I will need to be able to provide updates to existing users through the same site - without obliging users to uninstall the existing application.
What do I need to change in my (eclipse) project to permit this ?
Simon -
Apps are designed to be upgraded in place on Android. All you need to do is ensure that the version number of the app being installed is greater than the previous version.
You can still provide debug releases, simply increment a portion of the version to reflect that change and your users can keep getting updates. Otherwise, you may want to have an explicitly Debug and Release version that can be installed side by side and not conflict with each other, but that may be more trouble and confusing than its worth.
I'm planning to release an application and later on release debug or edit version as well.
But what if I release my app version as 1.1, and I release the version 1.2 later on.
Then, there must be some people who downloaded new version 1.2, but others might still keep the version 1.1
Is there any way to disable the version 1.1 which is already installed in Users' smartphone?
Or.. is there any way to update the previous version 1.1 to the latest version 1.2 in users' smartphone automatically without any process??
As a matter of fact, I want all users to use my application's latest version in order to provide new adds/items to entire users.
If there's any way, please let me know!!
You can't force users to upgrade to the newest version of your app. Really the best you can do is notify them that there is an update available for your app and encourage them to download it. For that I would start here.
i'm new in android developing. (and in developing after all)
Here is my problem: If i install my android application onto my mobile device or AVD, i want it to check the current app version number and if it's lower than the one i want to install currently then install it, and if it is higher , then alert the users that they already use the latest version.
Because now when i install the .apk file, it just installs the app again and nothing happens.
Is it possible to develop this?
Best regards,
weeyas
The install process is managed at the system level, so your application has no control over it. As per the versioning guide, the Android system will only allow you to install updates from the same or newer version codes (i.e., version 1 can be replaced by version 2, but version 2 can never be overridden by version 1 unless you do a complete uninstall/reinstall). This applies to both Google Play updates and sideloading APKs yourself.
I don't know if it is possible if you try to install application from .APK file. However, you will not be able to publish the newest apk to Google Play if it has the same or lower version number than the current one.