Android: Delete app associated files from external storage on Uninstall?

后端 未结 4 963
情话喂你
情话喂你 2021-01-02 08:15

It\'d be convenient if an application I\'m writing stored some files to external storage permanently (so they persist after the application has been exited[destroyed]), but

4条回答
  •  抹茶落季
    2021-01-02 08:42

    No, I don't believe so. Only files that you write to internal storage will be removed when your application is uninstalled (or if the user presses the 'clear data' button in the Application settings app).

    Your app can't receive its own PACKAGE_REMOVED broadcast intent either, so you essentially have no notification that you're being uninstalled.

提交回复
热议问题