HostApduService.NotifyUnhandled Method

Definition

Calling this method allows the service to tell the OS that it won't be able to complete this transaction - for example, because it requires data connectivity that is not present at that moment.

[Android.Runtime.Register("notifyUnhandled", "()V", "")]
public void NotifyUnhandled ();
[<Android.Runtime.Register("notifyUnhandled", "()V", "")>]
member this.NotifyUnhandled : unit -> unit
Attributes

Remarks

Calling this method allows the service to tell the OS that it won't be able to complete this transaction - for example, because it requires data connectivity that is not present at that moment.

The OS may use this indication to give the user a list of alternative applications that can handle the last AID that was selected. If the user would select an application from the list, that action by itself will not cause the default to be changed; the selected application will be invoked for the next tap only.

If there are no other applications that can handle this transaction, the OS will show an error dialog indicating your service could not complete the transaction.

Note: this method may be called anywhere between the first #processCommandApdu(byte[], Bundle) call and a #onDeactivated(int) call.

Java documentation for android.nfc.cardemulation.HostApduService.notifyUnhandled().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to