In case of network unavailability, storing some important information into the sqlite database and file on internal storage. When network available, it will sync to the server in background.
But when a user performs Clear Data, it deletes database and file stored on internal storage. Because of that, I am facing lot much data loss.
I already search on, how to catch clear data event and related below questions:
Also I can not store that data on external storage, because it can easily access by user using File managers and they can delete it manually.
So my questions are:
How I can prevent my offline data from deleting?
Is there any way to save offline data at secure place and access it only through application?