سؤال

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