Android update on Google Play - want to delete old data - android

I'm going to release new update of my app on Google play store. I use some resources stored on user's SD card (\sdcard\Android\package\data...). I make some important updates and want to replace these old files. Is there any way to delete all these files before updating? (Some flag "delete old version's files" on GPlay) Like uninstall and reinstall of the app. I can do it my way in app (try to delete old files if present). But this approach (via some installation routine) is smart, I think.

You should do it by yourself, because Google Play Store wouldn't do it for you.

Related

Create a patch APK file

Assume that "app-v1.apk" has assets/a.png. user install this app.
then we delete "a.png" file from assets and generate "app-v2.apk" file.
Is there any way to access the "assets/a.png" file when the user updates the app?
As far as I understand your question, what you are trying to say is
can we access assets of previous build that are not present in current build?
As far as my knowledge goes, The answer is NO. Play store manages updates so when you upload the new apk playstore updates app with current build, so the assets or changes in the old build are not accessible anymore.
Hope this answers your query.
I think it's not a good idea. You have to provide a complete app to take into account new users. Moreover, Play Store is able to update an app incrementally so you don't have to care about duplication for your users

How to install an AIR android app without deleting the data generated by the previous version

I have an android app developed using adobe AIR SDK 16 and Flash CS6. Every time i publish/debug the app directly in the connected device. But every time i publish the app the data(image, text files) saved in the application storage directory including the sqlite file is removed. Hence i have to recreate all the data again to test. Is there a way to install/public an apk without losing the data created by the installed app? I tried with changing the version number. But it did not work. Please help me
thanks
thanks for the replay, I found a way (from adobe forum). When we update an app from google play, the data will not be deleted. In my case the data is deleted because flash will first uninstall the app(this will clear the data) then install the new app again. To solve this, one way is instead of publishing directly use flash to publish the app and copy the apk into the android device and use any file explorer software to install it manually. This will not delete the data

Android: republishing a .apk file to the store

I submited an .apk file to the Android app store yesterday, and now submitted another one.
It created a second apk file which I activated and then I de-activated the previous one.
Is that the right procedure? Now I have 2 apk files showing up. Is that what is supposed to happen? Or is one supposed to delete the previous file?
Thanks!
Well it seems to be the right and only way to do it, because google dont seem to allow deleting files only to unpublish them. Perhaps to guarantee that free apps can not be sold..
See this from 2010, probably stil valid because I can't find any delete button either.
how to Delete published application from my android market account?

what changes do the app go during upgrade from market in android

I am looking for information about the upgrade process in android. I mean I want to know if the application is reinstalled? Is the cache cleared? Is the external storage folders deleted (as these are deleted during uninstall)? etc.
AFAIK, no, nothing changes except for the apk. This includes res/ and assets/, but will not include anything stored to the device's /sdcard/data/ directory.
If there is a sql lite database, it should be associated with a version number. If the db has to change in an upgrade, it is the developer's responsibility to implement a database upgrade for existing database, within their new release.
Keep in mind if the developer wants to, they can delete external resources. But natively, no Android will leave folders in /sdcard/data/ or whereever they might be stored.
Also, yes, the cache is cleared. This is actually from uninstalling the older version before reinstalling the new one.
From what I gather here: http://groups.google.com/a/googleproductforums.com/forum/#!category-topic/android-market/technical-help/0y8wNUhZEWo
It only replaces the .apk file.

version control routine on Android for data ?

I'm trying to implement a routine that checks the version of files on the sd card. The app essentially downloads a list of files on the sd card. The files on the server are prone to changes in the future.
How do I manage to check if the app is using the latest file. I thought doing it by forcing the user to reinstall the app and using SharedPrerfernces to store the version of each file, but then when the app is reinstalled the SharedPreferences will be deleted.
Any other way that you can suggest ?
Use the lastModified() method to determine the last time you got the files in question and then check to see if they're older than the ones on the server.

Categories

Resources