android.content
Class Intent

java.lang.Object
  extended by android.content.Intent
All Implemented Interfaces:
Parcelable, Cloneable
Direct Known Subclasses:
LabeledIntent

public class Intent
extends Object
implements Parcelable, Cloneable


Nested Class Summary
static class Intent.FilterComparison
           
static class Intent.ShortcutIconResource
           
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static String ACTION_AIRPLANE_MODE_CHANGED
           
static String ACTION_ALL_APPS
           
static String ACTION_ANSWER
           
static String ACTION_APP_ERROR
           
static String ACTION_ATTACH_DATA
           
static String ACTION_BATTERY_CHANGED
           
static String ACTION_BATTERY_LOW
           
static String ACTION_BATTERY_OKAY
           
static String ACTION_BOOT_COMPLETED
           
static String ACTION_BUG_REPORT
           
static String ACTION_CALL
           
static String ACTION_CALL_BUTTON
           
static String ACTION_CAMERA_BUTTON
           
static String ACTION_CHOOSER
           
static String ACTION_CLOSE_SYSTEM_DIALOGS
           
static String ACTION_CONFIGURATION_CHANGED
           
static String ACTION_CREATE_SHORTCUT
           
static String ACTION_DATE_CHANGED
           
static String ACTION_DEFAULT
           
static String ACTION_DELETE
           
static String ACTION_DEVICE_STORAGE_LOW
           
static String ACTION_DEVICE_STORAGE_OK
           
static String ACTION_DIAL
           
static String ACTION_DOCK_EVENT
           
static String ACTION_EDIT
           
static String ACTION_EXTERNAL_APPLICATIONS_AVAILABLE
           
static String ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE
           
static String ACTION_FACTORY_TEST
           
static String ACTION_GET_CONTENT
           
static String ACTION_GTALK_SERVICE_CONNECTED
           
static String ACTION_GTALK_SERVICE_DISCONNECTED
           
static String ACTION_HEADSET_PLUG
           
static String ACTION_INPUT_METHOD_CHANGED
           
static String ACTION_INSERT
           
static String ACTION_INSERT_OR_EDIT
           
static String ACTION_INSTALL_PACKAGE
           
static String ACTION_LOCALE_CHANGED
           
static String ACTION_MAIN
           
static String ACTION_MANAGE_NETWORK_USAGE
           
static String ACTION_MANAGE_PACKAGE_STORAGE
           
static String ACTION_MEDIA_BAD_REMOVAL
           
static String ACTION_MEDIA_BUTTON
           
static String ACTION_MEDIA_CHECKING
           
static String ACTION_MEDIA_EJECT
           
static String ACTION_MEDIA_MOUNTED
           
static String ACTION_MEDIA_NOFS
           
static String ACTION_MEDIA_REMOVED
           
static String ACTION_MEDIA_SCANNER_FINISHED
           
static String ACTION_MEDIA_SCANNER_SCAN_FILE
           
static String ACTION_MEDIA_SCANNER_STARTED
           
static String ACTION_MEDIA_SHARED
           
static String ACTION_MEDIA_UNMOUNTABLE
           
static String ACTION_MEDIA_UNMOUNTED
           
static String ACTION_MY_PACKAGE_REPLACED
           
static String ACTION_NEW_OUTGOING_CALL
           
static String ACTION_PACKAGE_ADDED
           
static String ACTION_PACKAGE_CHANGED
           
static String ACTION_PACKAGE_DATA_CLEARED
           
static String ACTION_PACKAGE_FIRST_LAUNCH
           
static String ACTION_PACKAGE_FULLY_REMOVED
           
static String ACTION_PACKAGE_INSTALL
           
static String ACTION_PACKAGE_NEEDS_VERIFICATION
           
static String ACTION_PACKAGE_REMOVED
           
static String ACTION_PACKAGE_REPLACED
           
static String ACTION_PACKAGE_RESTARTED
           
static String ACTION_PASTE
           
static String ACTION_PICK
           
static String ACTION_PICK_ACTIVITY
           
static String ACTION_POWER_CONNECTED
           
static String ACTION_POWER_DISCONNECTED
           
static String ACTION_POWER_USAGE_SUMMARY
           
static String ACTION_PROVIDER_CHANGED
           
static String ACTION_REBOOT
           
static String ACTION_RUN
           
static String ACTION_SCREEN_OFF
           
static String ACTION_SCREEN_ON
           
static String ACTION_SEARCH
           
static String ACTION_SEARCH_LONG_PRESS
           
static String ACTION_SEND
           
static String ACTION_SEND_MULTIPLE
           
static String ACTION_SENDTO
           
static String ACTION_SET_WALLPAPER
           
static String ACTION_SHUTDOWN
           
static String ACTION_SYNC
           
static String ACTION_SYSTEM_TUTORIAL
           
static String ACTION_TIME_CHANGED
           
static String ACTION_TIME_TICK
           
static String ACTION_TIMEZONE_CHANGED
           
static String ACTION_UID_REMOVED
           
static String ACTION_UMS_CONNECTED
           
static String ACTION_UMS_DISCONNECTED
           
static String ACTION_UNINSTALL_PACKAGE
           
static String ACTION_USER_PRESENT
           
static String ACTION_VIEW
           
static String ACTION_VOICE_COMMAND
           
static String ACTION_WALLPAPER_CHANGED
           
static String ACTION_WEB_SEARCH
           
static String CATEGORY_ALTERNATIVE
           
static String CATEGORY_APP_MARKET
           
static String CATEGORY_BROWSABLE
           
static String CATEGORY_CAR_DOCK
           
static String CATEGORY_CAR_MODE
           
static String CATEGORY_DEFAULT
           
static String CATEGORY_DESK_DOCK
           
static String CATEGORY_DEVELOPMENT_PREFERENCE
           
static String CATEGORY_EMBED
           
static String CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST
           
static String CATEGORY_HE_DESK_DOCK
           
static String CATEGORY_HOME
           
static String CATEGORY_INFO
           
static String CATEGORY_LAUNCHER
           
static String CATEGORY_LE_DESK_DOCK
           
static String CATEGORY_MONKEY
           
static String CATEGORY_OPENABLE
           
static String CATEGORY_PREFERENCE
           
static String CATEGORY_SAMPLE_CODE
           
static String CATEGORY_SELECTED_ALTERNATIVE
           
static String CATEGORY_TAB
           
static String CATEGORY_TEST
           
static String CATEGORY_UNIT_TEST
           
static Parcelable.Creator<Intent> CREATOR
           
static String EXTRA_ALARM_COUNT
           
static String EXTRA_ALLOW_REPLACE
           
static String EXTRA_BCC
           
static String EXTRA_BUG_REPORT
           
static String EXTRA_CC
           
static String EXTRA_CHANGED_COMPONENT_NAME
           
static String EXTRA_CHANGED_COMPONENT_NAME_LIST
           
static String EXTRA_CHANGED_PACKAGE_LIST
           
static String EXTRA_CHANGED_UID_LIST
           
static String EXTRA_DATA_REMOVED
           
static String EXTRA_DOCK_STATE
           
static int EXTRA_DOCK_STATE_CAR
           
static int EXTRA_DOCK_STATE_DESK
           
static int EXTRA_DOCK_STATE_HE_DESK
           
static int EXTRA_DOCK_STATE_LE_DESK
           
static int EXTRA_DOCK_STATE_UNDOCKED
           
static String EXTRA_DONT_KILL_APP
           
static String EXTRA_EMAIL
           
static String EXTRA_INITIAL_INTENTS
           
static String EXTRA_INSTALLER_PACKAGE_NAME
           
static String EXTRA_INTENT
           
static String EXTRA_KEY_EVENT
           
static String EXTRA_LOCAL_ONLY
           
static String EXTRA_NOT_UNKNOWN_SOURCE
           
static String EXTRA_PHONE_NUMBER
           
static String EXTRA_REMOTE_INTENT_TOKEN
           
static String EXTRA_REPLACING
           
static String EXTRA_RETURN_RESULT
           
static String EXTRA_SHORTCUT_ICON
           
static String EXTRA_SHORTCUT_ICON_RESOURCE
           
static String EXTRA_SHORTCUT_INTENT
           
static String EXTRA_SHORTCUT_NAME
           
static String EXTRA_STREAM
           
static String EXTRA_SUBJECT
           
static String EXTRA_TEMPLATE
           
static String EXTRA_TEXT
           
static String EXTRA_TITLE
           
static String EXTRA_UID
           
static int FILL_IN_ACTION
           
static int FILL_IN_CATEGORIES
           
static int FILL_IN_COMPONENT
           
static int FILL_IN_DATA
           
static int FILL_IN_PACKAGE
           
static int FILL_IN_SOURCE_BOUNDS
           
static int FLAG_ACTIVITY_BROUGHT_TO_FRONT
           
static int FLAG_ACTIVITY_CLEAR_TASK
           
static int FLAG_ACTIVITY_CLEAR_TOP
           
static int FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
           
static int FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
           
static int FLAG_ACTIVITY_FORWARD_RESULT
           
static int FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY
           
static int FLAG_ACTIVITY_MULTIPLE_TASK
           
static int FLAG_ACTIVITY_NEW_TASK
           
static int FLAG_ACTIVITY_NO_ANIMATION
           
static int FLAG_ACTIVITY_NO_HISTORY
           
static int FLAG_ACTIVITY_NO_USER_ACTION
           
static int FLAG_ACTIVITY_PREVIOUS_IS_TOP
           
static int FLAG_ACTIVITY_REORDER_TO_FRONT
           
static int FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
           
static int FLAG_ACTIVITY_SINGLE_TOP
           
static int FLAG_ACTIVITY_TASK_ON_HOME
           
static int FLAG_DEBUG_LOG_RESOLUTION
           
static int FLAG_EXCLUDE_STOPPED_PACKAGES
           
static int FLAG_FROM_BACKGROUND
           
static int FLAG_GRANT_READ_URI_PERMISSION
           
static int FLAG_GRANT_WRITE_URI_PERMISSION
           
static int FLAG_INCLUDE_STOPPED_PACKAGES
           
static int FLAG_RECEIVER_REGISTERED_ONLY
           
static int FLAG_RECEIVER_REPLACE_PENDING
           
static String METADATA_DOCK_HOME
           
static int URI_INTENT_SCHEME
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Intent()
           
Intent(Context packageContext, Class<?> cls)
           
Intent(Intent o)
           
Intent(String action)
           
Intent(String action, Uri uri)
           
Intent(String action, Uri uri, Context packageContext, Class<?> cls)
           
 
Method Summary
 Intent addCategory(String category)
           
 Intent addFlags(int flags)
           
 Object clone()
           
 Intent cloneFilter()
           
static Intent createChooser(Intent target, CharSequence title)
           
 int describeContents()
           
 int fillIn(Intent other, int flags)
           
 boolean filterEquals(Intent other)
           
 int filterHashCode()
           
 String getAction()
           
 boolean[] getBooleanArrayExtra(String name)
           
 boolean getBooleanExtra(String name, boolean defaultValue)
           
 Bundle getBundleExtra(String name)
           
 byte[] getByteArrayExtra(String name)
           
 byte getByteExtra(String name, byte defaultValue)
           
 Set<String> getCategories()
           
 char[] getCharArrayExtra(String name)
           
 char getCharExtra(String name, char defaultValue)
           
 CharSequence[] getCharSequenceArrayExtra(String name)
           
 ArrayList<CharSequence> getCharSequenceArrayListExtra(String name)
           
 CharSequence getCharSequenceExtra(String name)
           
 ComponentName getComponent()
           
 Uri getData()
           
 String getDataString()
           
 double[] getDoubleArrayExtra(String name)
           
 double getDoubleExtra(String name, double defaultValue)
           
 Bundle getExtras()
           
 int getFlags()
           
 float[] getFloatArrayExtra(String name)
           
 float getFloatExtra(String name, float defaultValue)
           
 int[] getIntArrayExtra(String name)
           
 ArrayList<Integer> getIntegerArrayListExtra(String name)
           
static Intent getIntent(String uri)
           
static Intent getIntentOld(String uri)
           
 int getIntExtra(String name, int defaultValue)
           
 long[] getLongArrayExtra(String name)
           
 long getLongExtra(String name, long defaultValue)
           
 String getPackage()
           
 Parcelable[] getParcelableArrayExtra(String name)
           
<T extends Parcelable>
ArrayList<T>
getParcelableArrayListExtra(String name)
           
<T extends Parcelable>
T
getParcelableExtra(String name)
           
 String getScheme()
           
 Serializable getSerializableExtra(String name)
           
 short[] getShortArrayExtra(String name)
           
 short getShortExtra(String name, short defaultValue)
           
 Rect getSourceBounds()
           
 String[] getStringArrayExtra(String name)
           
 ArrayList<String> getStringArrayListExtra(String name)
           
 String getStringExtra(String name)
           
 String getType()
           
 boolean hasCategory(String category)
           
 boolean hasExtra(String name)
           
 boolean hasFileDescriptors()
           
static Intent makeMainActivity(ComponentName mainActivity)
           
static Intent makeRestartActivityTask(ComponentName mainActivity)
           
static Intent parseIntent(Resources resources, org.xmlpull.v1.XmlPullParser parser, AttributeSet attrs)
           
static Intent parseUri(String uri, int flags)
           
 Intent putCharSequenceArrayListExtra(String name, ArrayList<CharSequence> value)
           
 Intent putExtra(String name, boolean value)
           
 Intent putExtra(String name, boolean[] value)
           
 Intent putExtra(String name, Bundle value)
           
 Intent putExtra(String name, byte value)
           
 Intent putExtra(String name, byte[] value)
           
 Intent putExtra(String name, char value)
           
 Intent putExtra(String name, char[] value)
           
 Intent putExtra(String name, CharSequence value)
           
 Intent putExtra(String name, CharSequence[] value)
           
 Intent putExtra(String name, double value)
           
 Intent putExtra(String name, double[] value)
           
 Intent putExtra(String name, float value)
           
 Intent putExtra(String name, float[] value)
           
 Intent putExtra(String name, int value)
           
 Intent putExtra(String name, int[] value)
           
 Intent putExtra(String name, long value)
           
 Intent putExtra(String name, long[] value)
           
 Intent putExtra(String name, Parcelable value)
           
 Intent putExtra(String name, Parcelable[] value)
           
 Intent putExtra(String name, Serializable value)
           
 Intent putExtra(String name, short value)
           
 Intent putExtra(String name, short[] value)
           
 Intent putExtra(String name, String value)
           
 Intent putExtra(String name, String[] value)
           
 Intent putExtras(Bundle extras)
           
 Intent putExtras(Intent src)
           
 Intent putIntegerArrayListExtra(String name, ArrayList<Integer> value)
           
 Intent putParcelableArrayListExtra(String name, ArrayList<? extends Parcelable> value)
           
 Intent putStringArrayListExtra(String name, ArrayList<String> value)
           
 void readFromParcel(Parcel in)
           
 void removeCategory(String category)
           
 void removeExtra(String name)
           
 Intent replaceExtras(Bundle extras)
           
 Intent replaceExtras(Intent src)
           
 ComponentName resolveActivity(PackageManager pm)
           
 ActivityInfo resolveActivityInfo(PackageManager pm, int flags)
           
 String resolveType(ContentResolver resolver)
           
 String resolveType(Context context)
           
 String resolveTypeIfNeeded(ContentResolver resolver)
           
 Intent setAction(String action)
           
 Intent setClass(Context packageContext, Class<?> cls)
           
 Intent setClassName(Context packageContext, String className)
           
 Intent setClassName(String packageName, String className)
           
 Intent setComponent(ComponentName component)
           
 Intent setData(Uri data)
           
 Intent setDataAndType(Uri data, String type)
           
 void setExtrasClassLoader(ClassLoader loader)
           
 Intent setFlags(int flags)
           
 Intent setPackage(String packageName)
           
 void setSourceBounds(Rect r)
           
 Intent setType(String type)
           
 String toString()
           
 String toURI()
           
 String toUri(int flags)
           
 void writeToParcel(Parcel out, int flags)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION_MAIN

public static final String ACTION_MAIN
See Also:
Constant Field Values

ACTION_VIEW

public static final String ACTION_VIEW
See Also:
Constant Field Values

ACTION_DEFAULT

public static final String ACTION_DEFAULT
See Also:
Constant Field Values

ACTION_ATTACH_DATA

public static final String ACTION_ATTACH_DATA
See Also:
Constant Field Values

ACTION_EDIT

public static final String ACTION_EDIT
See Also:
Constant Field Values

ACTION_INSERT_OR_EDIT

public static final String ACTION_INSERT_OR_EDIT
See Also:
Constant Field Values

ACTION_PICK

public static final String ACTION_PICK
See Also:
Constant Field Values

ACTION_CREATE_SHORTCUT

public static final String ACTION_CREATE_SHORTCUT
See Also:
Constant Field Values

EXTRA_SHORTCUT_INTENT

public static final String EXTRA_SHORTCUT_INTENT
See Also:
Constant Field Values

EXTRA_SHORTCUT_NAME

public static final String EXTRA_SHORTCUT_NAME
See Also:
Constant Field Values

EXTRA_SHORTCUT_ICON

public static final String EXTRA_SHORTCUT_ICON
See Also:
Constant Field Values

EXTRA_SHORTCUT_ICON_RESOURCE

public static final String EXTRA_SHORTCUT_ICON_RESOURCE
See Also:
Constant Field Values

ACTION_CHOOSER

public static final String ACTION_CHOOSER
See Also:
Constant Field Values

ACTION_GET_CONTENT

public static final String ACTION_GET_CONTENT
See Also:
Constant Field Values

ACTION_DIAL

public static final String ACTION_DIAL
See Also:
Constant Field Values

ACTION_CALL

public static final String ACTION_CALL
See Also:
Constant Field Values

ACTION_SENDTO

public static final String ACTION_SENDTO
See Also:
Constant Field Values

ACTION_SEND

public static final String ACTION_SEND
See Also:
Constant Field Values

ACTION_SEND_MULTIPLE

public static final String ACTION_SEND_MULTIPLE
See Also:
Constant Field Values

ACTION_ANSWER

public static final String ACTION_ANSWER
See Also:
Constant Field Values

ACTION_INSERT

public static final String ACTION_INSERT
See Also:
Constant Field Values

ACTION_PASTE

public static final String ACTION_PASTE
See Also:
Constant Field Values

ACTION_DELETE

public static final String ACTION_DELETE
See Also:
Constant Field Values

ACTION_RUN

public static final String ACTION_RUN
See Also:
Constant Field Values

ACTION_SYNC

public static final String ACTION_SYNC
See Also:
Constant Field Values

ACTION_PICK_ACTIVITY

public static final String ACTION_PICK_ACTIVITY
See Also:
Constant Field Values

ACTION_SEARCH

public static final String ACTION_SEARCH
See Also:
Constant Field Values

ACTION_SYSTEM_TUTORIAL

public static final String ACTION_SYSTEM_TUTORIAL
See Also:
Constant Field Values

ACTION_WEB_SEARCH

public static final String ACTION_WEB_SEARCH
See Also:
Constant Field Values

ACTION_ALL_APPS

public static final String ACTION_ALL_APPS
See Also:
Constant Field Values

ACTION_SET_WALLPAPER

public static final String ACTION_SET_WALLPAPER
See Also:
Constant Field Values

ACTION_BUG_REPORT

public static final String ACTION_BUG_REPORT
See Also:
Constant Field Values

ACTION_FACTORY_TEST

public static final String ACTION_FACTORY_TEST
See Also:
Constant Field Values

ACTION_CALL_BUTTON

public static final String ACTION_CALL_BUTTON
See Also:
Constant Field Values

ACTION_VOICE_COMMAND

public static final String ACTION_VOICE_COMMAND
See Also:
Constant Field Values

ACTION_SEARCH_LONG_PRESS

public static final String ACTION_SEARCH_LONG_PRESS
See Also:
Constant Field Values

ACTION_APP_ERROR

public static final String ACTION_APP_ERROR
See Also:
Constant Field Values

ACTION_POWER_USAGE_SUMMARY

public static final String ACTION_POWER_USAGE_SUMMARY
See Also:
Constant Field Values

ACTION_MANAGE_NETWORK_USAGE

public static final String ACTION_MANAGE_NETWORK_USAGE
See Also:
Constant Field Values

ACTION_INSTALL_PACKAGE

public static final String ACTION_INSTALL_PACKAGE
See Also:
Constant Field Values

EXTRA_INSTALLER_PACKAGE_NAME

public static final String EXTRA_INSTALLER_PACKAGE_NAME
See Also:
Constant Field Values

EXTRA_NOT_UNKNOWN_SOURCE

public static final String EXTRA_NOT_UNKNOWN_SOURCE
See Also:
Constant Field Values

EXTRA_ALLOW_REPLACE

public static final String EXTRA_ALLOW_REPLACE
See Also:
Constant Field Values

EXTRA_RETURN_RESULT

public static final String EXTRA_RETURN_RESULT
See Also:
Constant Field Values

ACTION_UNINSTALL_PACKAGE

public static final String ACTION_UNINSTALL_PACKAGE
See Also:
Constant Field Values

ACTION_SCREEN_OFF

public static final String ACTION_SCREEN_OFF
See Also:
Constant Field Values

ACTION_SCREEN_ON

public static final String ACTION_SCREEN_ON
See Also:
Constant Field Values

ACTION_USER_PRESENT

public static final String ACTION_USER_PRESENT
See Also:
Constant Field Values

ACTION_TIME_TICK

public static final String ACTION_TIME_TICK
See Also:
Constant Field Values

ACTION_TIME_CHANGED

public static final String ACTION_TIME_CHANGED
See Also:
Constant Field Values

ACTION_DATE_CHANGED

public static final String ACTION_DATE_CHANGED
See Also:
Constant Field Values

ACTION_TIMEZONE_CHANGED

public static final String ACTION_TIMEZONE_CHANGED
See Also:
Constant Field Values

ACTION_BOOT_COMPLETED

public static final String ACTION_BOOT_COMPLETED
See Also:
Constant Field Values

ACTION_CLOSE_SYSTEM_DIALOGS

public static final String ACTION_CLOSE_SYSTEM_DIALOGS
See Also:
Constant Field Values

ACTION_PACKAGE_INSTALL

public static final String ACTION_PACKAGE_INSTALL
See Also:
Constant Field Values

ACTION_PACKAGE_ADDED

public static final String ACTION_PACKAGE_ADDED
See Also:
Constant Field Values

ACTION_PACKAGE_REPLACED

public static final String ACTION_PACKAGE_REPLACED
See Also:
Constant Field Values

ACTION_MY_PACKAGE_REPLACED

public static final String ACTION_MY_PACKAGE_REPLACED
See Also:
Constant Field Values

ACTION_PACKAGE_REMOVED

public static final String ACTION_PACKAGE_REMOVED
See Also:
Constant Field Values

ACTION_PACKAGE_FULLY_REMOVED

public static final String ACTION_PACKAGE_FULLY_REMOVED
See Also:
Constant Field Values

ACTION_PACKAGE_CHANGED

public static final String ACTION_PACKAGE_CHANGED
See Also:
Constant Field Values

ACTION_PACKAGE_RESTARTED

public static final String ACTION_PACKAGE_RESTARTED
See Also:
Constant Field Values

ACTION_PACKAGE_DATA_CLEARED

public static final String ACTION_PACKAGE_DATA_CLEARED
See Also:
Constant Field Values

ACTION_UID_REMOVED

public static final String ACTION_UID_REMOVED
See Also:
Constant Field Values

ACTION_PACKAGE_FIRST_LAUNCH

public static final String ACTION_PACKAGE_FIRST_LAUNCH
See Also:
Constant Field Values

ACTION_PACKAGE_NEEDS_VERIFICATION

public static final String ACTION_PACKAGE_NEEDS_VERIFICATION
See Also:
Constant Field Values

ACTION_EXTERNAL_APPLICATIONS_AVAILABLE

public static final String ACTION_EXTERNAL_APPLICATIONS_AVAILABLE
See Also:
Constant Field Values

ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE

public static final String ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE
See Also:
Constant Field Values

ACTION_WALLPAPER_CHANGED

public static final String ACTION_WALLPAPER_CHANGED
See Also:
Constant Field Values

ACTION_CONFIGURATION_CHANGED

public static final String ACTION_CONFIGURATION_CHANGED
See Also:
Constant Field Values

ACTION_LOCALE_CHANGED

public static final String ACTION_LOCALE_CHANGED
See Also:
Constant Field Values

ACTION_BATTERY_CHANGED

public static final String ACTION_BATTERY_CHANGED
See Also:
Constant Field Values

ACTION_BATTERY_LOW

public static final String ACTION_BATTERY_LOW
See Also:
Constant Field Values

ACTION_BATTERY_OKAY

public static final String ACTION_BATTERY_OKAY
See Also:
Constant Field Values

ACTION_POWER_CONNECTED

public static final String ACTION_POWER_CONNECTED
See Also:
Constant Field Values

ACTION_POWER_DISCONNECTED

public static final String ACTION_POWER_DISCONNECTED
See Also:
Constant Field Values

ACTION_SHUTDOWN

public static final String ACTION_SHUTDOWN
See Also:
Constant Field Values

ACTION_DEVICE_STORAGE_LOW

public static final String ACTION_DEVICE_STORAGE_LOW
See Also:
Constant Field Values

ACTION_DEVICE_STORAGE_OK

public static final String ACTION_DEVICE_STORAGE_OK
See Also:
Constant Field Values

ACTION_MANAGE_PACKAGE_STORAGE

public static final String ACTION_MANAGE_PACKAGE_STORAGE
See Also:
Constant Field Values

ACTION_UMS_CONNECTED

public static final String ACTION_UMS_CONNECTED
See Also:
Constant Field Values

ACTION_UMS_DISCONNECTED

public static final String ACTION_UMS_DISCONNECTED
See Also:
Constant Field Values

ACTION_MEDIA_REMOVED

public static final String ACTION_MEDIA_REMOVED
See Also:
Constant Field Values

ACTION_MEDIA_UNMOUNTED

public static final String ACTION_MEDIA_UNMOUNTED
See Also:
Constant Field Values

ACTION_MEDIA_CHECKING

public static final String ACTION_MEDIA_CHECKING
See Also:
Constant Field Values

ACTION_MEDIA_NOFS

public static final String ACTION_MEDIA_NOFS
See Also:
Constant Field Values

ACTION_MEDIA_MOUNTED

public static final String ACTION_MEDIA_MOUNTED
See Also:
Constant Field Values

ACTION_MEDIA_SHARED

public static final String ACTION_MEDIA_SHARED
See Also:
Constant Field Values

ACTION_MEDIA_BAD_REMOVAL

public static final String ACTION_MEDIA_BAD_REMOVAL
See Also:
Constant Field Values

ACTION_MEDIA_UNMOUNTABLE

public static final String ACTION_MEDIA_UNMOUNTABLE
See Also:
Constant Field Values

ACTION_MEDIA_EJECT

public static final String ACTION_MEDIA_EJECT
See Also:
Constant Field Values

ACTION_MEDIA_SCANNER_STARTED

public static final String ACTION_MEDIA_SCANNER_STARTED
See Also:
Constant Field Values

ACTION_MEDIA_SCANNER_FINISHED

public static final String ACTION_MEDIA_SCANNER_FINISHED
See Also:
Constant Field Values

ACTION_MEDIA_SCANNER_SCAN_FILE

public static final String ACTION_MEDIA_SCANNER_SCAN_FILE
See Also:
Constant Field Values

ACTION_MEDIA_BUTTON

public static final String ACTION_MEDIA_BUTTON
See Also:
Constant Field Values

ACTION_CAMERA_BUTTON

public static final String ACTION_CAMERA_BUTTON
See Also:
Constant Field Values

ACTION_GTALK_SERVICE_CONNECTED

public static final String ACTION_GTALK_SERVICE_CONNECTED
See Also:
Constant Field Values

ACTION_GTALK_SERVICE_DISCONNECTED

public static final String ACTION_GTALK_SERVICE_DISCONNECTED
See Also:
Constant Field Values

ACTION_INPUT_METHOD_CHANGED

public static final String ACTION_INPUT_METHOD_CHANGED
See Also:
Constant Field Values

ACTION_AIRPLANE_MODE_CHANGED

public static final String ACTION_AIRPLANE_MODE_CHANGED
See Also:
Constant Field Values

ACTION_PROVIDER_CHANGED

public static final String ACTION_PROVIDER_CHANGED
See Also:
Constant Field Values

ACTION_HEADSET_PLUG

public static final String ACTION_HEADSET_PLUG
See Also:
Constant Field Values

ACTION_NEW_OUTGOING_CALL

public static final String ACTION_NEW_OUTGOING_CALL
See Also:
Constant Field Values

ACTION_REBOOT

public static final String ACTION_REBOOT
See Also:
Constant Field Values

ACTION_DOCK_EVENT

public static final String ACTION_DOCK_EVENT
See Also:
Constant Field Values

CATEGORY_DEFAULT

public static final String CATEGORY_DEFAULT
See Also:
Constant Field Values

CATEGORY_BROWSABLE

public static final String CATEGORY_BROWSABLE
See Also:
Constant Field Values

CATEGORY_ALTERNATIVE

public static final String CATEGORY_ALTERNATIVE
See Also:
Constant Field Values

CATEGORY_SELECTED_ALTERNATIVE

public static final String CATEGORY_SELECTED_ALTERNATIVE
See Also:
Constant Field Values

CATEGORY_TAB

public static final String CATEGORY_TAB
See Also:
Constant Field Values

CATEGORY_LAUNCHER

public static final String CATEGORY_LAUNCHER
See Also:
Constant Field Values

CATEGORY_INFO

public static final String CATEGORY_INFO
See Also:
Constant Field Values

CATEGORY_HOME

public static final String CATEGORY_HOME
See Also:
Constant Field Values

CATEGORY_PREFERENCE

public static final String CATEGORY_PREFERENCE
See Also:
Constant Field Values

CATEGORY_DEVELOPMENT_PREFERENCE

public static final String CATEGORY_DEVELOPMENT_PREFERENCE
See Also:
Constant Field Values

CATEGORY_EMBED

public static final String CATEGORY_EMBED
See Also:
Constant Field Values

CATEGORY_APP_MARKET

public static final String CATEGORY_APP_MARKET
See Also:
Constant Field Values

CATEGORY_MONKEY

public static final String CATEGORY_MONKEY
See Also:
Constant Field Values

CATEGORY_TEST

public static final String CATEGORY_TEST
See Also:
Constant Field Values

CATEGORY_UNIT_TEST

public static final String CATEGORY_UNIT_TEST
See Also:
Constant Field Values

CATEGORY_SAMPLE_CODE

public static final String CATEGORY_SAMPLE_CODE
See Also:
Constant Field Values

CATEGORY_OPENABLE

public static final String CATEGORY_OPENABLE
See Also:
Constant Field Values

CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST

public static final String CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST
See Also:
Constant Field Values

CATEGORY_CAR_DOCK

public static final String CATEGORY_CAR_DOCK
See Also:
Constant Field Values

CATEGORY_DESK_DOCK

public static final String CATEGORY_DESK_DOCK
See Also:
Constant Field Values

CATEGORY_LE_DESK_DOCK

public static final String CATEGORY_LE_DESK_DOCK
See Also:
Constant Field Values

CATEGORY_HE_DESK_DOCK

public static final String CATEGORY_HE_DESK_DOCK
See Also:
Constant Field Values

CATEGORY_CAR_MODE

public static final String CATEGORY_CAR_MODE
See Also:
Constant Field Values

EXTRA_TEMPLATE

public static final String EXTRA_TEMPLATE
See Also:
Constant Field Values

EXTRA_TEXT

public static final String EXTRA_TEXT
See Also:
Constant Field Values

EXTRA_STREAM

public static final String EXTRA_STREAM
See Also:
Constant Field Values

EXTRA_EMAIL

public static final String EXTRA_EMAIL
See Also:
Constant Field Values

EXTRA_CC

public static final String EXTRA_CC
See Also:
Constant Field Values

EXTRA_BCC

public static final String EXTRA_BCC
See Also:
Constant Field Values

EXTRA_SUBJECT

public static final String EXTRA_SUBJECT
See Also:
Constant Field Values

EXTRA_INTENT

public static final String EXTRA_INTENT
See Also:
Constant Field Values

EXTRA_TITLE

public static final String EXTRA_TITLE
See Also:
Constant Field Values

EXTRA_INITIAL_INTENTS

public static final String EXTRA_INITIAL_INTENTS
See Also:
Constant Field Values

EXTRA_KEY_EVENT

public static final String EXTRA_KEY_EVENT
See Also:
Constant Field Values

EXTRA_DONT_KILL_APP

public static final String EXTRA_DONT_KILL_APP
See Also:
Constant Field Values

EXTRA_PHONE_NUMBER

public static final String EXTRA_PHONE_NUMBER
See Also:
Constant Field Values

EXTRA_UID

public static final String EXTRA_UID
See Also:
Constant Field Values

EXTRA_DATA_REMOVED

public static final String EXTRA_DATA_REMOVED
See Also:
Constant Field Values

EXTRA_REPLACING

public static final String EXTRA_REPLACING
See Also:
Constant Field Values

EXTRA_ALARM_COUNT

public static final String EXTRA_ALARM_COUNT
See Also:
Constant Field Values

EXTRA_DOCK_STATE

public static final String EXTRA_DOCK_STATE
See Also:
Constant Field Values

EXTRA_DOCK_STATE_UNDOCKED

public static final int EXTRA_DOCK_STATE_UNDOCKED
See Also:
Constant Field Values

EXTRA_DOCK_STATE_DESK

public static final int EXTRA_DOCK_STATE_DESK
See Also:
Constant Field Values

EXTRA_DOCK_STATE_CAR

public static final int EXTRA_DOCK_STATE_CAR
See Also:
Constant Field Values

EXTRA_DOCK_STATE_LE_DESK

public static final int EXTRA_DOCK_STATE_LE_DESK
See Also:
Constant Field Values

EXTRA_DOCK_STATE_HE_DESK

public static final int EXTRA_DOCK_STATE_HE_DESK
See Also:
Constant Field Values

METADATA_DOCK_HOME

public static final String METADATA_DOCK_HOME
See Also:
Constant Field Values

EXTRA_BUG_REPORT

public static final String EXTRA_BUG_REPORT
See Also:
Constant Field Values

EXTRA_REMOTE_INTENT_TOKEN

public static final String EXTRA_REMOTE_INTENT_TOKEN
See Also:
Constant Field Values

EXTRA_CHANGED_COMPONENT_NAME

public static final String EXTRA_CHANGED_COMPONENT_NAME
See Also:
Constant Field Values

EXTRA_CHANGED_COMPONENT_NAME_LIST

public static final String EXTRA_CHANGED_COMPONENT_NAME_LIST
See Also:
Constant Field Values

EXTRA_CHANGED_PACKAGE_LIST

public static final String EXTRA_CHANGED_PACKAGE_LIST
See Also:
Constant Field Values

EXTRA_CHANGED_UID_LIST

public static final String EXTRA_CHANGED_UID_LIST
See Also:
Constant Field Values

EXTRA_LOCAL_ONLY

public static final String EXTRA_LOCAL_ONLY
See Also:
Constant Field Values

FLAG_GRANT_READ_URI_PERMISSION

public static final int FLAG_GRANT_READ_URI_PERMISSION
See Also:
Constant Field Values

FLAG_GRANT_WRITE_URI_PERMISSION

public static final int FLAG_GRANT_WRITE_URI_PERMISSION
See Also:
Constant Field Values

FLAG_FROM_BACKGROUND

public static final int FLAG_FROM_BACKGROUND
See Also:
Constant Field Values

FLAG_DEBUG_LOG_RESOLUTION

public static final int FLAG_DEBUG_LOG_RESOLUTION
See Also:
Constant Field Values

FLAG_EXCLUDE_STOPPED_PACKAGES

public static final int FLAG_EXCLUDE_STOPPED_PACKAGES
See Also:
Constant Field Values

FLAG_INCLUDE_STOPPED_PACKAGES

public static final int FLAG_INCLUDE_STOPPED_PACKAGES
See Also:
Constant Field Values

FLAG_ACTIVITY_NO_HISTORY

public static final int FLAG_ACTIVITY_NO_HISTORY
See Also:
Constant Field Values

FLAG_ACTIVITY_SINGLE_TOP

public static final int FLAG_ACTIVITY_SINGLE_TOP
See Also:
Constant Field Values

FLAG_ACTIVITY_NEW_TASK

public static final int FLAG_ACTIVITY_NEW_TASK
See Also:
Constant Field Values

FLAG_ACTIVITY_MULTIPLE_TASK

public static final int FLAG_ACTIVITY_MULTIPLE_TASK
See Also:
Constant Field Values

FLAG_ACTIVITY_CLEAR_TOP

public static final int FLAG_ACTIVITY_CLEAR_TOP
See Also:
Constant Field Values

FLAG_ACTIVITY_FORWARD_RESULT

public static final int FLAG_ACTIVITY_FORWARD_RESULT
See Also:
Constant Field Values

FLAG_ACTIVITY_PREVIOUS_IS_TOP

public static final int FLAG_ACTIVITY_PREVIOUS_IS_TOP
See Also:
Constant Field Values

FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS

public static final int FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
See Also:
Constant Field Values

FLAG_ACTIVITY_BROUGHT_TO_FRONT

public static final int FLAG_ACTIVITY_BROUGHT_TO_FRONT
See Also:
Constant Field Values

FLAG_ACTIVITY_RESET_TASK_IF_NEEDED

public static final int FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
See Also:
Constant Field Values

FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY

public static final int FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY
See Also:
Constant Field Values

FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET

public static final int FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
See Also:
Constant Field Values

FLAG_ACTIVITY_NO_USER_ACTION

public static final int FLAG_ACTIVITY_NO_USER_ACTION
See Also:
Constant Field Values

FLAG_ACTIVITY_REORDER_TO_FRONT

public static final int FLAG_ACTIVITY_REORDER_TO_FRONT
See Also:
Constant Field Values

FLAG_ACTIVITY_NO_ANIMATION

public static final int FLAG_ACTIVITY_NO_ANIMATION
See Also:
Constant Field Values

FLAG_ACTIVITY_CLEAR_TASK

public static final int FLAG_ACTIVITY_CLEAR_TASK
See Also:
Constant Field Values

FLAG_ACTIVITY_TASK_ON_HOME

public static final int FLAG_ACTIVITY_TASK_ON_HOME
See Also:
Constant Field Values

FLAG_RECEIVER_REGISTERED_ONLY

public static final int FLAG_RECEIVER_REGISTERED_ONLY
See Also:
Constant Field Values

FLAG_RECEIVER_REPLACE_PENDING

public static final int FLAG_RECEIVER_REPLACE_PENDING
See Also:
Constant Field Values

URI_INTENT_SCHEME

public static final int URI_INTENT_SCHEME
See Also:
Constant Field Values

FILL_IN_ACTION

public static final int FILL_IN_ACTION
See Also:
Constant Field Values

FILL_IN_DATA

public static final int FILL_IN_DATA
See Also:
Constant Field Values

FILL_IN_CATEGORIES

public static final int FILL_IN_CATEGORIES
See Also:
Constant Field Values

FILL_IN_COMPONENT

public static final int FILL_IN_COMPONENT
See Also:
Constant Field Values

FILL_IN_PACKAGE

public static final int FILL_IN_PACKAGE
See Also:
Constant Field Values

FILL_IN_SOURCE_BOUNDS

public static final int FILL_IN_SOURCE_BOUNDS
See Also:
Constant Field Values

CREATOR

public static final Parcelable.Creator<Intent> CREATOR
Constructor Detail

Intent

public Intent()

Intent

public Intent(Intent o)

Intent

public Intent(String action)

Intent

public Intent(String action,
              Uri uri)

Intent

public Intent(Context packageContext,
              Class<?> cls)

Intent

public Intent(String action,
              Uri uri,
              Context packageContext,
              Class<?> cls)
Method Detail

createChooser

public static Intent createChooser(Intent target,
                                   CharSequence title)

clone

public Object clone()
Overrides:
clone in class Object

cloneFilter

public Intent cloneFilter()

makeMainActivity

public static Intent makeMainActivity(ComponentName mainActivity)

makeRestartActivityTask

public static Intent makeRestartActivityTask(ComponentName mainActivity)

getIntent

public static Intent getIntent(String uri)
                        throws URISyntaxException
Throws:
URISyntaxException

parseUri

public static Intent parseUri(String uri,
                              int flags)
                       throws URISyntaxException
Throws:
URISyntaxException

getIntentOld

public static Intent getIntentOld(String uri)
                           throws URISyntaxException
Throws:
URISyntaxException

getAction

public String getAction()

getData

public Uri getData()

getDataString

public String getDataString()

getScheme

public String getScheme()

getType

public String getType()

resolveType

public String resolveType(Context context)

resolveType

public String resolveType(ContentResolver resolver)

resolveTypeIfNeeded

public String resolveTypeIfNeeded(ContentResolver resolver)

hasCategory

public boolean hasCategory(String category)

getCategories

public Set<String> getCategories()

setExtrasClassLoader

public void setExtrasClassLoader(ClassLoader loader)

hasExtra

public boolean hasExtra(String name)

hasFileDescriptors

public boolean hasFileDescriptors()

getBooleanExtra

public boolean getBooleanExtra(String name,
                               boolean defaultValue)

getByteExtra

public byte getByteExtra(String name,
                         byte defaultValue)

getShortExtra

public short getShortExtra(String name,
                           short defaultValue)

getCharExtra

public char getCharExtra(String name,
                         char defaultValue)

getIntExtra

public int getIntExtra(String name,
                       int defaultValue)

getLongExtra

public long getLongExtra(String name,
                         long defaultValue)

getFloatExtra

public float getFloatExtra(String name,
                           float defaultValue)

getDoubleExtra

public double getDoubleExtra(String name,
                             double defaultValue)

getStringExtra

public String getStringExtra(String name)

getCharSequenceExtra

public CharSequence getCharSequenceExtra(String name)

getParcelableExtra

public <T extends Parcelable> T getParcelableExtra(String name)

getParcelableArrayExtra

public Parcelable[] getParcelableArrayExtra(String name)

getParcelableArrayListExtra

public <T extends Parcelable> ArrayList<T> getParcelableArrayListExtra(String name)

getSerializableExtra

public Serializable getSerializableExtra(String name)

getIntegerArrayListExtra

public ArrayList<Integer> getIntegerArrayListExtra(String name)

getStringArrayListExtra

public ArrayList<String> getStringArrayListExtra(String name)

getCharSequenceArrayListExtra

public ArrayList<CharSequence> getCharSequenceArrayListExtra(String name)

getBooleanArrayExtra

public boolean[] getBooleanArrayExtra(String name)

getByteArrayExtra

public byte[] getByteArrayExtra(String name)

getShortArrayExtra

public short[] getShortArrayExtra(String name)

getCharArrayExtra

public char[] getCharArrayExtra(String name)

getIntArrayExtra

public int[] getIntArrayExtra(String name)

getLongArrayExtra

public long[] getLongArrayExtra(String name)

getFloatArrayExtra

public float[] getFloatArrayExtra(String name)

getDoubleArrayExtra

public double[] getDoubleArrayExtra(String name)

getStringArrayExtra

public String[] getStringArrayExtra(String name)

getCharSequenceArrayExtra

public CharSequence[] getCharSequenceArrayExtra(String name)

getBundleExtra

public Bundle getBundleExtra(String name)

getExtras

public Bundle getExtras()

getFlags

public int getFlags()

getPackage

public String getPackage()

getComponent

public ComponentName getComponent()

getSourceBounds

public Rect getSourceBounds()

resolveActivity

public ComponentName resolveActivity(PackageManager pm)

resolveActivityInfo

public ActivityInfo resolveActivityInfo(PackageManager pm,
                                        int flags)

setAction

public Intent setAction(String action)

setData

public Intent setData(Uri data)

setType

public Intent setType(String type)

setDataAndType

public Intent setDataAndType(Uri data,
                             String type)

addCategory

public Intent addCategory(String category)

removeCategory

public void removeCategory(String category)

putExtra

public Intent putExtra(String name,
                       boolean value)

putExtra

public Intent putExtra(String name,
                       byte value)

putExtra

public Intent putExtra(String name,
                       char value)

putExtra

public Intent putExtra(String name,
                       short value)

putExtra

public Intent putExtra(String name,
                       int value)

putExtra

public Intent putExtra(String name,
                       long value)

putExtra

public Intent putExtra(String name,
                       float value)

putExtra

public Intent putExtra(String name,
                       double value)

putExtra

public Intent putExtra(String name,
                       String value)

putExtra

public Intent putExtra(String name,
                       CharSequence value)

putExtra

public Intent putExtra(String name,
                       Parcelable value)

putExtra

public Intent putExtra(String name,
                       Parcelable[] value)

putParcelableArrayListExtra

public Intent putParcelableArrayListExtra(String name,
                                          ArrayList<? extends Parcelable> value)

putIntegerArrayListExtra

public Intent putIntegerArrayListExtra(String name,
                                       ArrayList<Integer> value)

putStringArrayListExtra

public Intent putStringArrayListExtra(String name,
                                      ArrayList<String> value)

putCharSequenceArrayListExtra

public Intent putCharSequenceArrayListExtra(String name,
                                            ArrayList<CharSequence> value)

putExtra

public Intent putExtra(String name,
                       Serializable value)

putExtra

public Intent putExtra(String name,
                       boolean[] value)

putExtra

public Intent putExtra(String name,
                       byte[] value)

putExtra

public Intent putExtra(String name,
                       short[] value)

putExtra

public Intent putExtra(String name,
                       char[] value)

putExtra

public Intent putExtra(String name,
                       int[] value)

putExtra

public Intent putExtra(String name,
                       long[] value)

putExtra

public Intent putExtra(String name,
                       float[] value)

putExtra

public Intent putExtra(String name,
                       double[] value)

putExtra

public Intent putExtra(String name,
                       String[] value)

putExtra

public Intent putExtra(String name,
                       CharSequence[] value)

putExtra

public Intent putExtra(String name,
                       Bundle value)

putExtras

public Intent putExtras(Intent src)

putExtras

public Intent putExtras(Bundle extras)

replaceExtras

public Intent replaceExtras(Intent src)

replaceExtras

public Intent replaceExtras(Bundle extras)

removeExtra

public void removeExtra(String name)

setFlags

public Intent setFlags(int flags)

addFlags

public Intent addFlags(int flags)

setPackage

public Intent setPackage(String packageName)

setComponent

public Intent setComponent(ComponentName component)

setClassName

public Intent setClassName(Context packageContext,
                           String className)

setClassName

public Intent setClassName(String packageName,
                           String className)

setClass

public Intent setClass(Context packageContext,
                       Class<?> cls)

setSourceBounds

public void setSourceBounds(Rect r)

fillIn

public int fillIn(Intent other,
                  int flags)

filterEquals

public boolean filterEquals(Intent other)

filterHashCode

public int filterHashCode()

toString

public String toString()
Overrides:
toString in class Object

toURI

public String toURI()

toUri

public String toUri(int flags)

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel out,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

readFromParcel

public void readFromParcel(Parcel in)

parseIntent

public static Intent parseIntent(Resources resources,
                                 org.xmlpull.v1.XmlPullParser parser,
                                 AttributeSet attrs)
                          throws org.xmlpull.v1.XmlPullParserException,
                                 IOException
Throws:
org.xmlpull.v1.XmlPullParserException
IOException


Copyright © 2008-2012. All Rights Reserved.