A quick question:
I am getting the error : cannot convert from String to Editable. Here is the code :
Credential.getInstance().UserName = preferences.get
For anyone interested in converting a String to Editable
Editable.Factory.getInstance().newEditable("myString");
From the docs, append is
Convenience for append(String.valueOf(text)).
Surely:
Credential.getInstance().UserName.append(preferences.getString("UserName", "invalid value"));
The API with the answers:
http://developer.android.com/reference/android/text/Editable.html