Android SQLite is designed to store local application data. When you decide to erase your application data, that data is erased (as expected).
If you want to save database data, look at external storage (for example, late Parse.com or MS Azure). You will make network calls, your local data will still be deleted, and you will need to associate your application with external post-local-wipe data (for example, logging in), but your external data will withstand the application data.
Part of the βbindingβ can also be reduced depending on your use case, for example. Google Play Games data services are tied to your Google Play ID and will re-sync after erasing the application.
source share