Constants | ||
---|---|---|
int | SETUP_MESSENGER | Message sent by the host application to the extension when the tunnel is first setup. |
int | SETUP_FAILED | Message sent by the extension if an unrecoverable failure is detected during setup. |
int | DISCONNECT | Message sent by the extension when it wants the host application to close the tunnel. |
int | TUNNEL_INTENT | Message sent by either the host application or the extension allowing the source to tunnel an intent directly to the target intent handler without passing the Android broadcast queue. |
java.lang.String | EXTRA_AHA_PACKAGE_NAME | The name of the Bundle-extra used to identify the host application by its package name. |
Message sent by the host application to the extension when the tunnel is first setup. This is the fist message sent over the connection. It carries a bundle with the host application package name and a reference to a host application Messenger to be used by the extension for sending messages to the host application.
Message data:
Bundle-extra data:
Constant Value: 0 (0x00000000)
Message sent by the extension if an unrecoverable failure is detected during setup. Further use of the tunnel after this message is not recommended.
Constant Value: 1 (0x00000001)
Message sent by the extension when it wants the host application to close the tunnel.
Constant Value: 2 (0x00000002)
Message sent by either the host application or the extension allowing the source to tunnel an intent directly to the target intent handler without passing the Android broadcast queue.
Message data:
Constant Value: 3 (0x00000003)
The name of the Bundle-extra used to identify the host application by its package name.
TYPE: TEXT
Constant Value: "aha_package_name"
Messenger messages sent between extensions and host applications. The constants are used in the Message what-field.