Android.Nfc.Tech.MifareUltralight.ReadPages Method
Read 4 pages (16 bytes).

Syntax

[Android.Runtime.Register("readPages", "(I)[B", "")]
public byte[] ReadPages (int p0)

Parameters

pageOffset
index of first page to read, starting from 0

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Android.Nfc.TagLostExceptionif the tag leaves the field
Java.IO.IOExceptionif there is an I/O failure, or the operation is canceled

Remarks

Read 4 pages (16 bytes).

The MIFARE Ultralight protocol always reads 4 pages at a time, to reduce the number of commands required to read an entire tag.

If a read spans past the last readable block, then the tag will return pages that have been wrapped back to the first blocks. MIFARE Ultralight tags have readable blocks 0x00 through 0x0F. So a read to block offset 0x0E would return blocks 0x0E, 0x0F, 0x00, 0x01. MIFARE Ultralight C tags have readable blocks 0x00 through 0x2B. So a read to block 0x2A would return blocks 0x2A, 0x2B, 0x00, 0x01.

This is an I/O operation and will block until complete. It must not be called from the main application thread. A blocked call will be canceled with Java.IO.IOException if MifareUltralight.Close is called from another thread.

Requires the NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#NFC permission.

[Android Documentation]

Requirements

Namespace: Android.Nfc.Tech
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 10