com.sonyericsson.media.infinite
Interface Extension


public interface Extension

Definitions which enable applications to register as Infinite plug-ins. The main use case for the plug-ins is to offer context related information about the content that is currently playing.


Field Summary
static java.lang.String ACTION_GET_DETAILS
          Ordered broadcast sent to those applications that wish to provide details associated with the plug-in.
static java.lang.String ACTION_VIEW_INFINITE
          Intent which must be declared in the plug-in application's AndroidManifest.xml.
static java.lang.String EXTRA_ACTIVITY_NAME
          Extra passed together with the ACTION_GET_DETAILS intent specifying the target activity.
static java.lang.String EXTRA_DESCRIPTION
          A short description of the plug-in.
static java.lang.String INFINITE_PERMISSION
          All plug-ins shall add in their AndroidManifest.xml a tag to use this permission.
static java.lang.String TYPE_AUDIO
          Type used together with intent ACTION_VIEW_INFINITE to distinguish the plug-in application.
 

Field Detail

INFINITE_PERMISSION

static final java.lang.String INFINITE_PERMISSION
All plug-ins shall add in their AndroidManifest.xml a tag to use this permission. An application that intends to behave as a plug-in but does not declare that it uses this permission will not be allowed to register itself as a plug-in. A SecurityException will be thrown if permission is not granted.

See Also:
Constant Field Values

ACTION_VIEW_INFINITE

static final java.lang.String ACTION_VIEW_INFINITE
Intent which must be declared in the plug-in application's AndroidManifest.xml. The intent will be used together with the registered MIME type to distinguish and start the plug-in application.

Parameter set by this intent:

See Also:
Intent.getData(), Constant Field Values

TYPE_AUDIO

static final java.lang.String TYPE_AUDIO
Type used together with intent ACTION_VIEW_INFINITE to distinguish the plug-in application. The MIME type and the Intent must be declared in the plug-in application's AndroidManifest.xml.

See Also:
Constant Field Values

ACTION_GET_DETAILS

static final java.lang.String ACTION_GET_DETAILS
Ordered broadcast sent to those applications that wish to provide details associated with the plug-in. This broadcast should be responded upon by changing the current result data using BroadcastReceiver.setResultExtras(Bundle).

See Also:
BroadcastReceiver.setResultExtras(Bundle extras), Constant Field Values

EXTRA_DESCRIPTION

static final java.lang.String EXTRA_DESCRIPTION
A short description of the plug-in. The description should be a string resource ID URI, set by BroadcastReceiver.setResultExtras(Bundle extras) when receiving a broadcast for ACTION_GET_DETAILS. Description text length must not exceed 50 characters.

See Also:
BroadcastReceiver.setResultExtras(Bundle extras), Constant Field Values

EXTRA_ACTIVITY_NAME

static final java.lang.String EXTRA_ACTIVITY_NAME
Extra passed together with the ACTION_GET_DETAILS intent specifying the target activity.

See Also:
Constant Field Values