Hey Alan, I've not run the sample myself, but after looking at the source it seems pretty clear. To read the tag, just press the Read button, and scan the tag ( data should appear in the topmost edittext. For write operation, place in an integer value in the lower edittext, press the Write button, and scan the tag. Inc and dec operations should work like write, accept you don't need to change the value in the lower edittext, the callback for those buttons will automatically pull the current value out, and inc or dec the value before writing to the tag.
Thank you for this reply, Bill.
I'm sorry if my inquiry wasn't clear.
I was actually wanted to ask on what valid/example values I can enter in the text boxes and what kind of responses.
The Secure NFC sample demonstrates how to use the Secure NFC APIs and the keys used in the sample are hard-coded for a specific SAM and Tag.
Before using the Secure NFC Sample you have to obtain the SAM and TAG keys from company/person who personalized your SAM and TAG, then modify sample to use those SAM and TAG keys required for the authentication.
Modify the below method in MainActivity.Java in the sample to use right SAM key and its Authentication Keys.
mifareSam.authenticateSam(authKey, samKey, null);
MifareDesfire TAG Authentication:
Modify the below method in MifareDesfireTagOperation.java in the sample to use right SAM key and TAG Keys.
mifareDesfire.authenticate(AuthenticateType.NATIVE, MifareTagConstants.CARD_KEY_FOR_READ_WRITE, lSamKeyForReadWrite, null);
MifarePlusSL3 TAG Authentication:
Modify the below method in MifarePlusSl3TagOperation.java in the sample to use right SAM key and TAG Keys.
mifarePlusSl3.firstAuthentication( MifareTagConstants.KEY_A_DATA_BLOCK, lSamKeyForDataBlock, null, null);
Once this is done, then you can use your sample to read data from and write data to TAG.