@Override
protected void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
WriteUserInfo()
}
private void WriteUserInfo()
{
SharedPreferences userInfo = getSharedPreferences("user_info",0);
SharedPreferences.Editor editor = userInfo.edit();
EditText userName = (EditText)findViewById(R.id.username);
editor.putString("username", userName.getText().toString());
editor.commit();
}
public boolean readAndDispatch () {
checkDevice ();