1. Download our Official Android App: Forums for Android!

Apps need help handling for "clear data"

Discussion in 'Android Development' started by ricky robi, Sep 20, 2012.

  1. ricky robi

    ricky robi Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Sep 20, 2012

    Sep 20, 2012
    1
    0
    5
    i build application....and i want to back up my database when user click "clear data" in manage application...because data is lost...some data is very critical for process in my application...how can i solved this???
    please help me .....

    thanks...
     

    Advertisement

  2. Unforgiven

    Moderator
    Rank:
     #2
    Points:
    4,238
    Posts:
    33,598
    Joined:
    Jun 23, 2010

    Jun 23, 2010
    33,598
    33,756
    4,238
    Male
    Douglas, MA
    I moved this to the application development forum to get some better eyes on it.:)
     
    jonbonazza likes this.
  3. alostpacket

    alostpacket Over Macho Grande?
    Rank:
    None
    Points:
    513
    Posts:
    7,973
    Joined:
    Nov 29, 2009

    Nov 29, 2009
    7,973
    3,603
    513
    Android App Developer
    NY
    There are lots of ways to backup your data but not knowing how it is stored, means I can't really suggest how to back it up.

    However, there is no way for an app to listen for it's own "clear data" intent.

    I'd recommend you have some type of check to see if the data that you consider critical is there before using it.
     

Share This Page

Loading...