Android shared prefrance
<p>hi
 i have using shared preference for saving user name and password ,but when my application crashes i lost  my data,i need to re login again(Only some crashes i lost the data  ),how can i solve this problem ? </p>

<p>SharedData.userInfo = PreferenceManager
    .getDefaultSharedPreferences(ctx);
  SharedData.userAdd = SharedData.userInfo.edit();
  SharedData.userAdd.putString("userEmailAddress", uname);
  SharedData.userAdd.putString("userPassword", upassword);
  SharedData.userAdd.commit();</p>
