I am using an AlertDialog.Builder to display a dialog to prompt the user to enter a password, I then want to save that password in a preference, however I can\'t figure out
Variable result , make it a member variable , instead of local variable. By making "result" as member variable it is accessible in the entire activity.(parent class which extends activity)