For IsoDep using setTimeOut function to set a time resolves the issue. On Apr 26, 12:13 pm, perumal316 <perumal...@gmail.com> wrote: > Hi Michael, > > I changed MiFareClassic object to IsoDep. But I am getting the > following error: > > "android.nfc.TagLostException: Tag was lost" > > Must I add in additional code to sustain the connection? (Am I > correct?) > > Thanks In Advance, > Perumal > > On Apr 25, 5:00 pm, Michael Roland <mi.rol...@gmail.com> wrote: > > > > > Hallo Wilson, > > > > I am facing an issue with a Mifare Classic card (this is a dual > > > interface smart card; contact and contactless). > > > Alright, then it is most likely not a MIFARE Classic card but a > > contactless (dual interface) smart card (with ISO 14443-4 interface) > > that additionally provides a MIFARE Classic emulation. > > > > When I use transceive() to send apdu corresponding to "select AID", it > > > always > > > return null. > > > Right, as you write here:> 2) Create MifareClassic object using > > > you create a MifareClassic but what you really want to do is open an > > APDU connection to the card. If your card is a real dual-interface > > smart card(*) it should also expose an IsoDep interface (ISO 14443-4 / > > ISO 7816-4). This is the interface you would want to use for APDU > > communication. > > > br, > > Michael > > > (*) There could also exist some hybrid cards that have a MIFARE > > Classic _contactless_ card and an APDU-based _contact_ smart card > > joined into the same plastic card. In that case the contact and > > contactless parts would be independent chips and no communication > > between them would be possible.- Hide quoted text - > > - Show quoted text -
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en