Merge "Added response flags and DSFID extras for NfcV technology (API part)." into gingerbread
This commit is contained in:
@@ -44,6 +44,7 @@ public final class NfcB extends BasicTagTechnology {
|
|||||||
public NfcB(NfcAdapter adapter, Tag tag, Bundle extras)
|
public NfcB(NfcAdapter adapter, Tag tag, Bundle extras)
|
||||||
throws RemoteException {
|
throws RemoteException {
|
||||||
super(adapter, tag, TagTechnology.NFC_B);
|
super(adapter, tag, TagTechnology.NFC_B);
|
||||||
|
mAtqb = extras.getByteArray(EXTRA_ATQB);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -36,8 +36,27 @@ import android.os.RemoteException;
|
|||||||
* permission.
|
* permission.
|
||||||
*/
|
*/
|
||||||
public final class NfcV extends BasicTagTechnology {
|
public final class NfcV extends BasicTagTechnology {
|
||||||
|
/** @hide */
|
||||||
|
public static final String EXTRA_RESP_FLAGS = "respflags";
|
||||||
|
|
||||||
|
/** @hide */
|
||||||
|
public static final String EXTRA_DSFID = "dsfid";
|
||||||
|
|
||||||
|
private byte mRespFlags;
|
||||||
|
private byte mDsfId;
|
||||||
|
|
||||||
public NfcV(NfcAdapter adapter, Tag tag, Bundle extras)
|
public NfcV(NfcAdapter adapter, Tag tag, Bundle extras)
|
||||||
throws RemoteException {
|
throws RemoteException {
|
||||||
super(adapter, tag, TagTechnology.NFC_V);
|
super(adapter, tag, TagTechnology.NFC_V);
|
||||||
|
mRespFlags = extras.getByte(EXTRA_RESP_FLAGS);
|
||||||
|
mDsfId = extras.getByte(EXTRA_DSFID);
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte getResponseFlags() {
|
||||||
|
return mRespFlags;
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte getDsfId() {
|
||||||
|
return mDsfId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user