On Fri, Apr 15, 2011 at 7:05 AM, Prasanna <[email protected]> wrote: > For that i store password in sharedPreferences but now how do i know > that their is already password exists in sharedPreferences or not?
Read in the value using getString() on SharedPreferences. Supply null as the 2nd parameter to getString(). If you get null as the return value, that means the user has not supplied a password. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

