Sony Addon SDK
public static interface

Tunnel.Messages

This project is no longer being supported and will not get any further updates.

Class Overview

Messenger messages sent between extensions and host applications. The constants are used in the Message what-field.

Summary

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.

Constants

Added in API level 1.0 public static final int SETUP_MESSENGER

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:

  • obj: a Bundle
  • replyTo: a Messenger

Bundle-extra data:

Constant Value: 0 (0x00000000)

Added in API level 1.0 public static final int SETUP_FAILED

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)

Added in API level 1.0 public static final int DISCONNECT

Message sent by the extension when it wants the host application to close the tunnel.

Constant Value: 2 (0x00000002)

Added in API level 1.0 public static final 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.

Message data:

  • obj: the intent to tunnel

Constant Value: 3 (0x00000003)

Added in API level 1.0 public static final java.lang.String EXTRA_AHA_PACKAGE_NAME

The name of the Bundle-extra used to identify the host application by its package name.

TYPE: TEXT

Constant Value: "aha_package_name"