@Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); if (NFCAdapter != null) NFCAdapter.enableForegroundDispatch(this, pendingIntent, i, techListsArray); }