And how'd you perform the copy? Is there a way to let the user choose
where to copy to? Or how the user can copy it back to the device?

On Apr 3, 8:11 am, MrChaz <[email protected]> wrote:
> I went with plan B and simple copied the database file
>
> it lives in  "data/data/<package name>/databases/<database name>" if i
> remember rightly.
>
> On Apr 2, 9:23 pm, droozen <[email protected]> wrote:
>
> > So I've come to a need to backup data in my application, so a user can
> > safely restore the important data. I had an idea about how to go about
> > this, but relatively it's a lot of work just to test if it would work,
> > so it'd be nice to get a thumbs up or thumbs down to my plan from
> > someone who has tried it, or an alternate way to do it.
>
> > I was thinking that I could compose an email that the user could send
> > to himself with a link in it like: 
> > content://<mycontentprovider>/databackup/<the
> > data, possibly in a delimited format (comma-separated)>
>
> > And when the user would click the link it would pull up my content
> > provider that would take all the data from the link and restore it
> > into my database.
>
> > Alternate idea: save the database file to another machine or email,
> > but I wouldn't know how to go about doing this. Can I make my
> > application attach the database to an email that could be imported? Is
> > it easy to make the user hook up a USB cord to a computer for them to
> > manually backup and reload the database file?
--~--~---------~--~----~------------~-------~--~----~
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