@Override protected void onPause() { super.onPause(); nfcAdapter.disableForegroundDispatch(this); toast("App Paused"); }