I have made an android app. I want to upload it on android market. I later want to make updates too. So what necassary stepts should i take so that it automatically detects the android new version and download and install them
I have tried googling but no exact tutorial have been found.
In coding what links should I put and stuff like that.
Best Regards
-Set this line to your manifest:
<manifest android:versionCode="1" android:versionName="1">
-Increase the versionCode for each new version and update
-do NOT change the packagename of the app
-use the update functionality in your google play account
when you upload new version app, upgrade its versionCode and versionName in Manifest.xml. Market will handle it automatically by reading the versionCode and notify user's device to upgrade if possible. Ensure that the new versionCode value must be bigger than the old one.
You only need to update your manifest file, by changing the version code
<manifest android:versionName="1.6"
android:versionCode="7"
If the version code has not increased, google will not let you upload the new version.
Once released, the user's google play account will detect new version, and if they have selected automatic update for the App, it will install for them.
If not then it will notify them of available update when they are next in their
'My Apps' section of google play.
Hope this helps
Related
I would like to raise my target and compile version to 28 from 26. This is because a user emailed me and said that the app doesn't work properly on his phone which runs andoird 9.
Once I upped the target and compile versions, I tested out the app with various devices and it seems like everything is running just fine with different devices and emulators.
However I'm concerned that with the new SDK target and compile versions, that users might lose their data when they update. My DatabaseHelper class extends SQLiteOpenHelper.
Do I have to do anything to make sure their database tables are preserved when I update with the higher target and compile version?
NOTE: My database schema is staying the exact same with the update.
Changing the target SDK version will not lost the data of existing users if they update the app over existing(with lower sdk).
What you can do to verify this is instal the previous build(with lower sdk) from play store and upload your new build in alpha release(with the updated target sdk) and add yourself as a tester. When alpha release gets live it will give you an option to update the app on previous app(with low target sdk).
when you hit the update button you will get your results.
This way you can make verify this.
If you wish your app data to be saved even if the app is deleted and than installed again, you can use the backup feature available since android 6.0
Add these lines to your manifest inside the <application> tag:
android:allowBackup="true"
android:fullBackupContent="true"
The end result should look like this:
<application
android:name="your.app.bundle"
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<activity />
<activity />
</application>
If you’re using Room to handle your database operations, migrations are very easy
Follow this office android developer guide
if you are not using Room its not easy to migrate(if you update db to much) for this please read this medium blog
Edited : As you mention you are not doing any change in DB
you will not lose data for 100% verfication you can test by following steps
1)Download your app from playstore.
2)do changes in code and update your app version in gradle.
3)Make a signed build(with same keystore which used in playstore apk) so you have a updated version build.
4)Put this updated version apk in phone and install/update( make sure old version of app is there , which you download from playstore).
5)Now your app is updated , you can check/test whatever you want.
is there any possibility to upload different Versions of the same App to the Playstore?
Thanks,
VanDahlen
No, the package name of your app will be the same, Playstore can have only one app with the same package name. Even if your version will be different the package name will be same.
Play store have only one package name regarding to the app,we can upload new .apk file as a new version like 1.1.1(version) with some description.That version we can change in AndroidManifest file.
Yeah, You can upload different version of the same App to the Playstore.
Just Goto AndroidManifest -> change android:versionCode="*"
(i.e. increase the versionCode value by 1).
Every time when you upload the same app on playstore. You have to change the versioncode.
It is upto you, you want to change your versionName or not.
I have an Android app on Google Play market. I have added some features and also I want to change minsdkversion 5 to 8. Will Google play accept the new apk or reject due to increase in minsdkversion?
Google Play will accept it, just as long as the package name and the signing certificate are the same, doesn't matter if the minSDK, targetSDK or maxSDK is changed within the manifest.
it will accept and give you a warning letting you know how many users won't be able to update it.
The devices from API version <=7 will not get any update but the devices >=8 API version will get update as usual.
I have an application already in Google play and I'm developing a new version for it.
If I install mine new version with Google play version already installed it gives me INSTALL_FAILED_VERSION_DOWNGRADE. I changed version on manifest but the error is the same.
I need to have the official version installed because the new version changes some old data and I want to test if it's ok.
How could I proceed?
You need to make sure that versionCode is increased. It is a numerical value and each version has to have it higher than the previous one (not necessarily by 1, just higher, you can go, e.g. from 10 to 20).
versionName is what is displayed to the user in Google Play. It can be any value, necessarily numeric. You can even say "next version" or "the most awesome version".
android:versionCode="4" <- this one needs to be increased and is numeric
android:versionName="1.0.4" <- this is for display to the user, this is not numeric
I have android app published in google play with the following version:
android:versionCode="1"
android:versionName="1.0"
I think that's the default version when creating android app in Eclipse IDE. I made minor changes in my app. I want to publish the updated app. What is the recommended versionCode and versionName for the updated app?
What I want is that users who already installed the app will be notified by google play that a new version is available. Im new to android development. In my device, I received notification for my installed app that there are new version available. I want this functionality.
I'm thinking of having:
android:versionCode="2"
android:versionName="1.0.1"
Is that OK?
thanks
Yes thats perfect.
Typically, you would release the first version of your application
with versionCode set to 1, then monotonically increase the value with
each release, regardless whether the release constitutes a major or
minor release. This means that the android:versionCode value does not
necessarily have a strong resemblance to the application release
version that is visible to the user (see android:versionName, below).
Applications and publishing services should not display this version
value to users.
As with android:versionCode, the system does not use this value for
any internal purpose, other than to enable applications to display it
to users. Publishing services may also extract the android:versionName
value for display to users.
Ref : Versioning Your Applications and versionCode vs versionName in Android Manifest
Yes that's correct.
The versionCode needs to increment but the versionName can be any string to be shown to your users.
See docs for fuller explanation: http://developer.android.com/tools/publishing/versioning.html