Beispiel #1
0
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    getSupportActionBar().setHomeButtonEnabled(true);

    setContentView(R.layout.activity_sign_in);

    initView();

    IntentFilter filter = new IntentFilter();
    filter.addAction(Const.ACTION_SIGN_FAIL);
    filter.addAction(Const.ACTION_SIGN_SUCCESS);
    registerReceiver(receiver, filter);
  }
Beispiel #2
0
 @Override
 protected void onDestroy() {
   unregisterReceiver(receiver);
   super.onDestroy();
 }