As far as I know, It's a good way to use SharedPreferences when you need to save Login Password, Now coming to your main question, You might have android:allowBackup="true"
in your manifest, Try passing "False" instead
Update
Just for your information, SharedPreferences deletes the info on uninstallation.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…