Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to upgrade the prevoius apk with new apk without losing the previous data in android from unknown resources apk

Tags:

android

apk

How to upgrade the android application with out losing previous apk data in real device with new apk ?

like image 660
Rajender Reddy Avatar asked Apr 26 '12 11:04

Rajender Reddy


1 Answers

there is a versionCode element in AndroidManifest.xml. This is an integer and its value should be increased for each new version. So the higher the value of this integer, the more recent the version of your app is. So to update your app with apk, you should just increment this number by 1 and recompile your app and use the resulting apk to install your app as you normally would. The data will be automatically saved. This is how hockeyapp updates the app for beta testers.

like image 149
binW Avatar answered Oct 24 '22 05:10

binW