


A tag can either be a MIFARE Classic tag or a MIFARE Ultralight tag, but not both at the same time. MifareClassic and MifareUltralight are mutually exclusive.A tag can either already contain NDEF data/an empty NDEF message (-> Ndef) or it may be ready to be formatted with an NDEF message (-> NdefFormatable). Ndef and NdefFormatable are mutually exclusive.So you would need to have a tag that is Ndef and NdefFormatable and MifareClassic and MifareUltralight. entries within one entry are combined using a logical AND. The tech filter you were originally using, ĭoes not make any sense. Your problem is the tech filter XML file (as you finally correctly found out yourself).
#Mifare classic tool apk how to#
I'm still at a loss on how to get ANDROID to launch my app/activity when a tag (MIFARE or NOT) is detected.
#Mifare classic tool apk serial number#
With this code I can read the MIFARE card serial number when my app is in the foreground, but I'm still unable to set things up so that ANDROID launches my activity when it is in the background. I don't even need any intent filters set up in the manifest for this to work, just a simple manifest like this will do: Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG) īyteBuffer wrapped = ByteBuffer.wrap(id) Public class MainActivity extends ActionBarActivity Īdapter = NfcAdapter.getDefaultAdapter(this) Īdapter.enableForegroundDispatch(this, pendingIntent, filters, techs) Here is the nfc_tech_filter resource file: Īnd here is the activity code: package It filters by NDEF_DISCOVERED because TECH_DISCOVERED didn't work alone.

The code is very simple, and, AFAIK should be working. The problem is that my app is never launched. I've tried to follow the less than satisfying documentation found on and. I've uninstalled it to make sure the only NFC app was my own. I know it can be done because I've used NFC Card Info app in my device and it is launched correctly in the presence of the MIFARE card. but now that things are much simpler and higher level I can't make it to work with Java, Android and Android Studio! I think I'm getting dumber with time.Īll I'm trying to do is to launch an application when a MIFARE card is detected. I've even written low-level code to emulate MIFARE cards. I've got a lot of experience working with MIFARE (since 1996, when working with cards manufactured by GEMPLUS).
