It's not a tough problem to solve. You have a version number in your
manifest, so just stick that in your file, and check it every time the app
runs. If the file doesn't exist, or if the version number doesn't match
delete the file and download a new one. 



Sincerely,
 
Brad Gies
 
 
-----------------------------------------------------------------
Brad Gies
27415 Greenfield Rd, # 2,
Southfield, MI, USA
48076
www.bgies.com  www.truckerphone.com 
www.EDI-Easy.com  www.pricebunny.com
-----------------------------------------------------------------
 
Moderation in everything, including abstinence
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mark Murphy
Sent: Wednesday, February 04, 2009 12:32 PM
To: [email protected]
Subject: [android-developers] Re: how to completely wipe out the application
data


shahzad ahmad wrote:
> Suppose user downloads the same version of
> application again then metadata will not help much.

*shrug*

Look at it this way: if hundreds, if not thousands, of feed reader
programs can figure out how to cache feed results and only download
updates, one would think their patterns (e.g., metadata) might work in
your case.

> There should be some
> way out everything when an application is uninstalled

I think it is all removed on a true uninstall. An upgrade (adb install
-r, downloading an update from the Market) is not a true uninstall --
the presumption is the application wants that data.

Personally, I think it'd be nice to have hooks whereby if you, say,
supply your own Application class, that it would be called on these
sorts of events (onInstall(), onPreUpgrade(), onPostUpgrade(),
onUninstall()). But, such hooks do not exist today, AFAIK.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to