I'm looking for something like the Keychain
on the iPhone, but for Android development. Something that gives me the capability to save small key-value pairs that are persistent and unchanged even if the user reinstalls the application.
Is there something like that? Can I use the standard preferences that way?
I would like to achieve a behavior similar to the way it works with games on a PC - writing the save files to another folder so that after deletion and reinstallation the save files are not lost.
Edit:
The bounty ran out without somebody mentioning the accountManager
. I just stumbled over it. Would that be a method to achieve the behaviour described by me?
Other interesting Android alternatives to Keychain Access are LastPass, 1Password, Keepass2Android and KeePassDroid.
Click on your account name and select Import from the drop-down menu. Choose iCloud Passwords. Decide whether to import your passwords to your Personal or Private vault. Select and import your .
As far as I can tell, Chrome uses the keychain automatically: Google Chrome can save your usernames and passwords for different websites. The browser can then automatically complete the sign-in fields for you when you next visit these websites.
In order to successfully transfer your passwords from IOS to your Android device, you will need to export them from your Apple account.
You you use storage on the SD card like Michael Cramer stated ( Let the user know you are storing data :-) ). The data on the SD card is not deleted when the app is removed.
You could on the other hand use a server which stores all the details which can be downloaded as and when required and instead of using a user name use the IMEI of the phone which is unique. That way even if the user reinstalls the OS he will still be able to refetch the settings.
for getting the IMEI you may refer : How to get the device's IMEI/ESN programmatically in android?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With