Provide system code and manufacturer code for Felica tech.

Change-Id: I56d5308ad5fa4998a88e1e0aec51fe301ab99078
This commit is contained in:
Martijn Coenen
2010-11-24 23:17:06 +01:00
parent 1253ebc74a
commit 438feb9b3b

View File

@@ -36,8 +36,28 @@ import android.os.RemoteException;
* permission.
*/
public final class NfcF extends BasicTagTechnology {
/** @hide */
public static final String EXTRA_SC = "systemcode";
/** @hide */
public static final String EXTRA_PMM = "pmm";
private byte[] mSystemCode = null;
private byte[] mManufacturer = null;
public NfcF(NfcAdapter adapter, Tag tag, Bundle extras)
throws RemoteException {
super(adapter, tag, TagTechnology.NFC_F);
if (extras != null) {
mSystemCode = extras.getByteArray(EXTRA_SC);
mManufacturer = extras.getByteArray(EXTRA_PMM);
}
}
public byte[] getSystemCode() {
return mSystemCode;
}
public byte[] getManufacturer() {
return mManufacturer;
}
}