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

Apps Clean up downloaded data during Uninstalling

Discussion in 'Android Development' started by dolgong, Mar 30, 2011.

  1. dolgong

    dolgong Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Mar 30, 2011

    Mar 30, 2011
    1
    0
    5
    Application stores some data on sd card. I'd like to delete this data when user uninstall my app. Is there anyway to clean up used data on SDCard during uninstallation?

    Thanks in advance.
     

    Advertisement

  2. alostpacket

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

    Nov 29, 2009
    7,972
    3,603
    513
    Android App Developer
    NY
    It's not possible as your app will never "know" when it's being uninstalled.

    Best you can do is either store data internally in your app's "data" storage space, or offer some sort of "cleanup" button inside your app.


    Intent | Android Developers

     

Share This Page

Loading...