質問

I am creating an application which connects to the server using username/password and I would like to enable the option "Save password" so the user wouldn't have to type the password each time the application starts. Can any one please tell me how to do this?? thanks.

役に立ちましたか?

解決

How to save data, you can look here http://developer.android.com/guide/topics/data/data-storage.html

But beware to save the password unencrypted. Save it encrypted and create a way you can check using the already encrypted password.

他のヒント

In such a case you would use SharedPreferences Cheers!

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top