How to perform lock and unlock tag action in android development? Even the demo app (123RFID Mobile) is not working and very less info for these two function
RFD8500 Android Lock and Unlock Tag// Expert user has replied. |
RFD8500 Android Lock and Unlock Tag// Expert user has replied.How to perform lock and unlock tag action in android development? Even the demo app (123RFID Mobile) is not working and very less info for these two function |
Subscribe to email updates
Monthly updates from our Zebra development team, straight to your inbox.
1 Replies
Hi Wind,
From page 88 of our RFD developers guide:
The application calls method reader.Actions.TagAccess.lockWait to perform a lock operation on one or more
memory banks with specific privileges.
// Lock the tag
String tagId = "1234ABCD00000000000025B1";
TagAccess tagAccess = new TagAccess();
TagAccess.LockAccessParams lockAccessParams = tagAccess.new LockAccessParams();
/* lock now */
lockAccessParams.setLockPrivilege(LOCK_DATA_FIELD.LOCK_USER_MEMORY,
LOCK_PRIVILEGE.LOCK_PRIVILEGE_READ_WRITE);
lockAccessParams.setAccessPassword(0);
reader.Actions.TagAccess.lockWait(tagId, lockAccessParams, null);