public class ActivityStarter extends AndroidNonvisibleComponent implements ActivityResultListener, Component, Deleteable
form
ACCELEROMETER_SENSITIVITY_MODERATE, ACCELEROMETER_SENSITIVITY_STRONG, ACCELEROMETER_SENSITIVITY_WEAK, ALIGNMENT_CENTER, ALIGNMENT_NORMAL, ALIGNMENT_OPPOSITE, ASSET_DIRECTORY, BUTTON_SHAPE_DEFAULT, BUTTON_SHAPE_OVAL, BUTTON_SHAPE_RECT, BUTTON_SHAPE_ROUNDED, COLOR_BLACK, COLOR_BLUE, COLOR_CYAN, COLOR_DEFAULT, COLOR_DKGRAY, COLOR_GRAY, COLOR_GREEN, COLOR_LTGRAY, COLOR_MAGENTA, COLOR_NONE, COLOR_ORANGE, COLOR_PINK, COLOR_RED, COLOR_WHITE, COLOR_YELLOW, DEFAULT_VALUE_COLOR_BLACK, DEFAULT_VALUE_COLOR_BLUE, DEFAULT_VALUE_COLOR_CYAN, DEFAULT_VALUE_COLOR_DEFAULT, DEFAULT_VALUE_COLOR_DKGRAY, DEFAULT_VALUE_COLOR_GRAY, DEFAULT_VALUE_COLOR_GREEN, DEFAULT_VALUE_COLOR_LTGRAY, DEFAULT_VALUE_COLOR_MAGENTA, DEFAULT_VALUE_COLOR_NONE, DEFAULT_VALUE_COLOR_ORANGE, DEFAULT_VALUE_COLOR_PINK, DEFAULT_VALUE_COLOR_RED, DEFAULT_VALUE_COLOR_WHITE, DEFAULT_VALUE_COLOR_YELLOW, DIRECTION_EAST, DIRECTION_MAX, DIRECTION_MIN, DIRECTION_NONE, DIRECTION_NORTH, DIRECTION_NORTHEAST, DIRECTION_NORTHWEST, DIRECTION_SOUTH, DIRECTION_SOUTHEAST, DIRECTION_SOUTHWEST, DIRECTION_WEST, FONT_DEFAULT_SIZE, LAYOUT_ORIENTATION_HORIZONTAL, LAYOUT_ORIENTATION_VERTICAL, LENGTH_FILL_PARENT, LENGTH_PREFERRED, LENGTH_UNKNOWN, SLIDER_MAX_VALUE, SLIDER_MIN_VALUE, SLIDER_THUMB_VALUE, TOAST_LENGTH_LONG, TOAST_LENGTH_SHORT, TYPEFACE_DEFAULT, TYPEFACE_MONOSPACE, TYPEFACE_SANSSERIF, TYPEFACE_SERIF
Constructor and Description |
---|
ActivityStarter(ComponentContainer container)
Creates a new ActivityStarter component.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
Action()
Returns the action that will be used to start the activity.
|
void |
Action(java.lang.String action)
Specifies the action that will be used to start the activity.
|
java.lang.String |
ActivityClass()
Returns the class part of the specific component that will be started.
|
void |
ActivityClass(java.lang.String activityClass)
Specifies the class part of the specific component that will be started.
|
void |
ActivityError(java.lang.String message) |
java.lang.String |
ActivityPackage()
Returns the package part of the specific component that will be started.
|
void |
ActivityPackage(java.lang.String activityPackage)
Specifies the package part of the specific component that will be started.
|
void |
AfterActivity(java.lang.String result) |
java.lang.String |
DataType()
Returns the MIME type to pass to the activity.
|
void |
DataType(java.lang.String dataType)
Specifies the MIME type to pass to the activity.
|
java.lang.String |
DataUri()
Returns the data URI that will be used to start the activity.
|
void |
DataUri(java.lang.String dataUri)
Specifies the data URI that will be used to start the activity.
|
java.lang.String |
ExtraKey()
Returns the extra key that will be passed to the activity.
|
void |
ExtraKey(java.lang.String extraKey)
Specifies the extra key that will be passed to the activity.
|
java.lang.String |
ExtraValue()
Returns the extra value that will be passed to the activity.
|
void |
ExtraValue(java.lang.String extraValue)
Specifies the extra value that will be passed to the activity.
|
void |
onDelete() |
java.lang.String |
ResolveActivity()
Returns the name of the activity that corresponds to this ActivityStarter,
or an empty string if no corresponding activity can be found.
|
java.lang.String |
Result()
Returns the result from the activity.
|
java.lang.String |
ResultName()
Returns the name that will be used to retrieve a result from the activity.
|
void |
ResultName(java.lang.String resultName)
Specifies the name that will be used to retrieve a result from the
activity.
|
void |
resultReturned(int requestCode,
int resultCode,
android.content.Intent data)
The callback method used to report Activity results back to the caller.
|
java.lang.String |
ResultType()
Returns the MIME type from the activity.
|
java.lang.String |
ResultUri()
Returns the URI from the activity.
|
void |
StartActivity()
Start the activity.
|
getDispatchDelegate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDispatchDelegate
public ActivityStarter(ComponentContainer container)
container
- container, kept for access to form and contextpublic java.lang.String Action()
public void Action(java.lang.String action)
public java.lang.String ExtraKey()
public void ExtraKey(java.lang.String extraKey)
public java.lang.String ExtraValue()
public void ExtraValue(java.lang.String extraValue)
public java.lang.String ResultName()
public void ResultName(java.lang.String resultName)
public java.lang.String Result()
public java.lang.String DataUri()
public void DataUri(java.lang.String dataUri)
public java.lang.String DataType()
public void DataType(java.lang.String dataType)
public java.lang.String ActivityPackage()
public void ActivityPackage(java.lang.String activityPackage)
public java.lang.String ActivityClass()
public void ActivityClass(java.lang.String activityClass)
public void AfterActivity(java.lang.String result)
public java.lang.String ResultType()
public java.lang.String ResultUri()
public java.lang.String ResolveActivity()
public void StartActivity()
public void resultReturned(int requestCode, int resultCode, android.content.Intent data)
ActivityResultListener
resultReturned
in interface ActivityResultListener
requestCode
- the originally passed in request code. Used to identify the call.resultCode
- the returned result code: Activity.RESULT_OK
or
Activity.RESULT_CANCELED
data
- the returned data, encapsulated as an Intent
.public void ActivityError(java.lang.String message)
public void onDelete()
onDelete
in interface Deleteable