diff options
Diffstat (limited to 'core/java/android/nfc/NfcAdapter.java')
-rw-r--r-- | core/java/android/nfc/NfcAdapter.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/nfc/NfcAdapter.java b/core/java/android/nfc/NfcAdapter.java index 5176857..23f96e3 100644 --- a/core/java/android/nfc/NfcAdapter.java +++ b/core/java/android/nfc/NfcAdapter.java @@ -903,6 +903,17 @@ public final class NfcAdapter { /** * @hide */ + public void setP2pModes(int initiatorModes, int targetModes) { + try { + sService.setP2pModes(initiatorModes, targetModes); + } catch (RemoteException e) { + attemptDeadServiceRecovery(e); + } + } + + /** + * @hide + */ public INfcAdapterExtras getNfcAdapterExtrasInterface() { if (mContext == null) { throw new UnsupportedOperationException("You need a context on NfcAdapter to use the " |