@Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub

    setContentView(R.layout.activity_login);

    preferences = getSharedPreferences("login", MODE_PRIVATE);

    initView();
    initData();

    super.onCreate(savedInstanceState);
  }
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   if (metAccount != null) initData();
   super.onResume();
 }