Beispiel #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    Interface.ActionBarForModule("scan", this);
    super.setModule("scan");

    setContentView(R.layout.activity_scan);
    context = this;

    setUpForegroundDispatchSystem();
    super.onCreate(savedInstanceState);
  }
Beispiel #2
0
 @Override
 public void onPause() {
   super.onPause();
   nfcAdapter.disableForegroundDispatch(this);
 }
Beispiel #3
0
 @Override
 public void onResume() {
   super.onResume();
   nfcAdapter.enableForegroundDispatch(this, pendingIntent, intentFiltersArray, techListsArray);
 }