A quick question:
I am getting the error : cannot convert from String to Editable. Here is the code :
Credential.getInstance().UserName = preferences.get
Surely:
Credential.getInstance().UserName.append(preferences.getString("UserName", "invalid value"));
The API with the answers:
http://developer.android.com/reference/android/text/Editable.html