summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-12-12 07:56:08 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-12-12 07:56:08 -0800
commitdab4a553078f2fc8adff9e123763db551493e6ed (patch)
tree00e167a4f1ec496fdbdd4bfaa32d9fc18f090b65
parent23d9f8c24029d7bbac596341384c8ec483713a38 (diff)
parent555bee27f52d5c012784c353a1d412d7817e8289 (diff)
Merge "Add to javadoc for onAidConflictOccurred to clarify what can be done to recitify that error." into main
-rw-r--r--nfc/java/android/nfc/cardemulation/CardEmulation.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/nfc/java/android/nfc/cardemulation/CardEmulation.java b/nfc/java/android/nfc/cardemulation/CardEmulation.java
index e0bc15fe6e94..baae05b4ea03 100644
--- a/nfc/java/android/nfc/cardemulation/CardEmulation.java
+++ b/nfc/java/android/nfc/cardemulation/CardEmulation.java
@@ -1327,7 +1327,10 @@ public final class CardEmulation {
/**
* This method is called when an AID conflict is detected during an NFC transaction. This
- * can happen when multiple services are registered for the same AID.
+ * can happen when multiple services are registered for the same AID. If your service is
+ * registered for this AID you may want to instruct users to bring your app to the
+ * foreground and ensure you call {@link #setPreferredService(Activity, ComponentName)}
+ * to ensure the transaction is routed to your service.
*
* @param aid The AID that is in conflict
*/