Sony Addon SDK
public static interface

Sensor.Intents

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

Class Overview

Intents sent between extensions and host applications either using the broadcast queue or Tunnel.

Summary

Constants
java.lang.String SENSOR_REGISTER_LISTENER_INTENT Intent used by the Sensor extension whenever it wants to start listen to sensor data.
java.lang.String SENSOR_UNREGISTER_LISTENER_INTENT Intent used by the Sensor extension whenever it wants to stop listen to sensor data.
java.lang.String SENSOR_ERROR_MESSAGE_INTENT Intent sent by the Host Application when an error situation has occurred
java.lang.String EXTRA_AEA_PACKAGE_NAME The name of the Intent-extra used to identify the extension.
java.lang.String EXTRA_SENSOR_ID The name of the Intent-extra used to identify the Sensor.
java.lang.String EXTRA_SENSOR_LOCAL_SERVER_SOCKET_NAME The name of the Intent-extra used to identify the name of the Android Local Server Socket that is now waiting for a connection from the host application
java.lang.String EXTRA_SENSOR_REQUESTED_RATE The name of the Intent-extra used to set the preferred delivery rate of the sensor data.
java.lang.String EXTRA_SENSOR_INTERRUPT_MODE The name of the Intent-extra used to set the sensor interrupt mode.
java.lang.String EXTRA_ERROR_CODE The name of the Intent-extra used to set the error code of an error message from the host application.
java.lang.String EXTRA_AHA_PACKAGE_NAME The name of the Intent-extra used to identify the Host Application.

Constants

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

Intent used by the Sensor extension whenever it wants to start listen to sensor data. The purpose of the intent is to tell the host application that a local server socket is now waiting for a connection from the host application. The name of the local server socket is sent in the intent.

This intent should be sent with enforced security by supplying the host application permission to sendBroadcast(Intent, String). HOSTAPP_PERMISSION

Intent-extra data:



Constant Value: "com.sonyericsson.extras.aef.sensor.REGISTER_LISTENER"

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

Intent used by the Sensor extension whenever it wants to stop listen to sensor data.

This intent should be sent with enforced security by supplying the host application permission to sendBroadcast(Intent, String). HOSTAPP_PERMISSION

Intent-extra data:



Constant Value: "com.sonyericsson.extras.aef.sensor.UNREGISTER_LISTENER"

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

Intent sent by the Host Application when an error situation has occurred

Intent-extra data:



Constant Value: "com.sonyericsson.extras.aef.sensor.ERROR_MESSSAGE"

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

The name of the Intent-extra used to identify the extension. The extension will send its package name

TYPE: TEXT

Constant Value: "aea_package_name"

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

The name of the Intent-extra used to identify the Sensor. The extension will send the ID of the sensor. The ID must be identical to the value of the SENSOR_ID column from the Sensor table of a sensor that is attached to the current host application

TYPE: INTEGER (int)

Constant Value: "sensor_id"

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

The name of the Intent-extra used to identify the name of the Android Local Server Socket that is now waiting for a connection from the host application

TYPE: TEXT

Constant Value: "local_server_socket_name"

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

The name of the Intent-extra used to set the preferred delivery rate of the sensor data. The value must one the predefined constants Sensor.SensorRates

TYPE: INTEGER (int)

Constant Value: "requested_rate"

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

The name of the Intent-extra used to set the sensor interrupt mode. The value must one the predefined constants Sensor.SensorInterruptMode

TYPE: INTEGER (int)

Constant Value: "interrupt_mode"

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

The name of the Intent-extra used to set the error code of an error message from the host application. The value must be one of the predefined constants Sensor.SensorApiErrorCodes

TYPE: INTEGER (int)

Constant Value: "error_code"

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

The name of the Intent-extra used to identify the Host Application. The Host Application will send its package name.

TYPE: TEXT

Constant Value: "aha_package_name"