Hallo,

Originally Posted by
Jorge Gil
About the connection, i know that for Mifare 1k, would use MFS or NDEFTagConnection.
[...]
I really wanna know how i can write for example on the block 4(name), 5(e-mail), 6(phone number) for example, but dont know the way to do that and what must do with the target keys.
You can't do this with the NDEFTagConnection but only with the MFStandardConnection. The NDEFTagConnection is an abstraction to the Forum tag types (and in case of the Nokia API also for Mifare Classic).

Originally Posted by
Jorge Gil
In the visual.net aplication, i charge keys, then authenticate, and then write on the Mifare 1k tag, thats not need on the nokia?
That's pretty much the same as you would do on the Nokia:
1. You open the connection:
Code:
MFStandardConnection conn = (MFStandardConnection) Connector.open(targetUrl);
2. Then your application can either use the Mifare application directory (MAD) to find its allocated secors or can access the sector immediatly without the MAD:
Code:
MFSector mfsector = conn.getSector(sectorIndex);
3. Within the secor you can access each block with:
Code:
MFBlock mfblock = mfsector.getBlock(blockIndex);
4. Then you can read the block's data with something like this (NOW you authenticate with the sector specific key):
Code:
byte[] KEY_SECTOR = {(byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF};
byte[] blockdata = new byte[mfblock.size()];
readcnt = mfblock.read(new MFKey.KeyA(KEY_SECTOR), blockdata, 0, 0, mfblock.size());
br,
Michael