Domanda

I want my application to store some data for lifetime of application.
I know that there are 4 types of data storage in android.
1: Shared Preference
2: Internal Storage
3: External Storage (I don't want to use this as it includes extra permission)
4: SQLite Database
5: Network connection (I cant use this as i want to target users who don't have data connection).

Data stored by method 1,2,4 are not reliable as user can clear application data from application manager.
Is there any other way to achieve this objective?

È stato utile?

Soluzione

Data stored by method 1,2,4 are not reliable as user can clear application data from application manager.

If your objective is to put data on users' devices that they cannot remove, that is not possible in standard versions of Android by SDK applications. The user is in control over their device, not you, and therefore they can get rid of your data (and your app, for that matter) whenever they wish.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top