thanks murphy for your reply.Suppose user downloads the same version of
application again then metadata will not help much.There should be some way
out everything when an application is uninstalled

On Wed, Feb 4, 2009 at 7:34 PM, Mark Murphy <[email protected]> wrote:

>
> shahzad ahmad wrote:
> > I'm developing an application which downloads a file from FTP server.
> > The code first checks if file is present on local system . If it is not
> > present on local system then it downloads it from FTP server.
> > Application must download file from FTP server when it executes first
> > time after getting installed.
> >
> > If we reinstall the application , android preserves the data of old
> > application .So now application finds the file on local system and does
> > not download it from FTP server. But it should always download the file
> > on first execution after fresh install.
> >
> > Is there any way to completely wipe out the previous application data on
> > fresh install ?
>
> I would recommend you put metadata in your file itself that indicates
> what version of your app the file supports. Rather than the rule be
> "should always download the file on first execution", the rule should be
> "should always examine the metadata and download the file if it is needed".
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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