android.app
Class Activity

java.lang.Object
  extended by android.content.Context
      extended by android.content.ContextWrapper
          extended by android.view.ContextThemeWrapper
              extended by android.app.Activity
All Implemented Interfaces:
ComponentCallbacks, ComponentCallbacks2, KeyEvent.Callback, LayoutInflater.Factory, LayoutInflater.Factory2, View.OnCreateContextMenuListener, Window.Callback
Direct Known Subclasses:
AccountAuthenticatorActivity, ActivityGroup, AliasActivity, ExpandableListActivity, ListActivity, NativeActivity

public class Activity
extends ContextThemeWrapper
implements LayoutInflater.Factory2, Window.Callback, KeyEvent.Callback, View.OnCreateContextMenuListener, ComponentCallbacks2


Field Summary
static int DEFAULT_KEYS_DIALER
           
static int DEFAULT_KEYS_DISABLE
           
static int DEFAULT_KEYS_SEARCH_GLOBAL
           
static int DEFAULT_KEYS_SEARCH_LOCAL
           
static int DEFAULT_KEYS_SHORTCUT
           
protected static int[] FOCUSED_STATE_SET
           
static int RESULT_CANCELED
           
static int RESULT_FIRST_USER
           
static int RESULT_OK
           
 
Fields inherited from class android.content.Context
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_IMPORTANT, BIND_NOT_FOREGROUND, BIND_WAIVE_PRIORITY, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_MULTI_PROCESS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NFC_SERVICE, NOTIFICATION_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STORAGE_SERVICE, TELEPHONY_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, UI_MODE_SERVICE, USB_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_P2P_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
 
Fields inherited from interface android.content.ComponentCallbacks2
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_UI_HIDDEN
 
Constructor Summary
Activity()
           
 
Method Summary
 void addContentView(View view, ViewGroup.LayoutParams params)
           
 void closeContextMenu()
           
 void closeOptionsMenu()
           
 PendingIntent createPendingResult(int requestCode, Intent data, int flags)
           
 void dismissDialog(int id)
           
 boolean dispatchGenericMotionEvent(MotionEvent ev)
           
 boolean dispatchKeyEvent(KeyEvent event)
           
 boolean dispatchKeyShortcutEvent(KeyEvent event)
           
 boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event)
           
 boolean dispatchTouchEvent(MotionEvent ev)
           
 boolean dispatchTrackballEvent(MotionEvent ev)
           
 void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args)
           
 View findViewById(int id)
           
 void finish()
           
 void finishActivity(int requestCode)
           
 void finishActivityFromChild(Activity child, int requestCode)
           
 void finishFromChild(Activity child)
           
 ActionBar getActionBar()
           
 Application getApplication()
           
 ComponentName getCallingActivity()
           
 String getCallingPackage()
           
 int getChangingConfigurations()
           
 ComponentName getComponentName()
           
 View getCurrentFocus()
           
 FragmentManager getFragmentManager()
           
 Intent getIntent()
           
 Object getLastNonConfigurationInstance()
           
 LayoutInflater getLayoutInflater()
           
 LoaderManager getLoaderManager()
           
 String getLocalClassName()
           
 MenuInflater getMenuInflater()
           
 Activity getParent()
           
 SharedPreferences getPreferences(int mode)
           
 int getRequestedOrientation()
           
 Object getSystemService(String name)
           
 int getTaskId()
           
 CharSequence getTitle()
           
 int getTitleColor()
           
 int getVolumeControlStream()
           
 Window getWindow()
           
 WindowManager getWindowManager()
           
 boolean hasWindowFocus()
           
 void invalidateOptionsMenu()
           
 boolean isChangingConfigurations()
           
 boolean isChild()
           
 boolean isFinishing()
           
 boolean isTaskRoot()
           
 Cursor managedQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
           
 boolean moveTaskToBack(boolean nonRoot)
           
 void onActionModeFinished(ActionMode mode)
           
 void onActionModeStarted(ActionMode mode)
           
protected  void onActivityResult(int requestCode, int resultCode, Intent data)
           
protected  void onApplyThemeResource(Resources.Theme theme, int resid, boolean first)
           
 void onAttachedToWindow()
           
 void onAttachFragment(Fragment fragment)
           
 void onBackPressed()
           
protected  void onChildTitleChanged(Activity childActivity, CharSequence title)
           
 void onConfigurationChanged(Configuration newConfig)
           
 void onContentChanged()
           
 boolean onContextItemSelected(MenuItem item)
           
 void onContextMenuClosed(Menu menu)
           
protected  void onCreate(Bundle savedInstanceState)
           
 void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)
           
 CharSequence onCreateDescription()
           
protected  Dialog onCreateDialog(int id)
           
protected  Dialog onCreateDialog(int id, Bundle args)
           
 boolean onCreateOptionsMenu(Menu menu)
           
 boolean onCreatePanelMenu(int featureId, Menu menu)
           
 View onCreatePanelView(int featureId)
           
 boolean onCreateThumbnail(Bitmap outBitmap, Canvas canvas)
           
 View onCreateView(String name, Context context, AttributeSet attrs)
           
 View onCreateView(View parent, String name, Context context, AttributeSet attrs)
           
protected  void onDestroy()
           
 void onDetachedFromWindow()
           
 boolean onGenericMotionEvent(MotionEvent event)
           
 boolean onKeyDown(int keyCode, KeyEvent event)
           
 boolean onKeyLongPress(int keyCode, KeyEvent event)
           
 boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event)
           
 boolean onKeyShortcut(int keyCode, KeyEvent event)
           
 boolean onKeyUp(int keyCode, KeyEvent event)
           
 void onLowMemory()
           
 boolean onMenuItemSelected(int featureId, MenuItem item)
           
 boolean onMenuOpened(int featureId, Menu menu)
           
protected  void onNewIntent(Intent intent)
           
 boolean onOptionsItemSelected(MenuItem item)
           
 void onOptionsMenuClosed(Menu menu)
           
 void onPanelClosed(int featureId, Menu menu)
           
protected  void onPause()
           
protected  void onPostCreate(Bundle savedInstanceState)
           
protected  void onPostResume()
           
protected  void onPrepareDialog(int id, Dialog dialog)
           
protected  void onPrepareDialog(int id, Dialog dialog, Bundle args)
           
 boolean onPrepareOptionsMenu(Menu menu)
           
 boolean onPreparePanel(int featureId, View view, Menu menu)
           
protected  void onRestart()
           
protected  void onRestoreInstanceState(Bundle savedInstanceState)
           
protected  void onResume()
           
 Object onRetainNonConfigurationInstance()
           
protected  void onSaveInstanceState(Bundle outState)
           
 boolean onSearchRequested()
           
protected  void onStart()
           
protected  void onStop()
           
protected  void onTitleChanged(CharSequence title, int color)
           
 boolean onTouchEvent(MotionEvent event)
           
 boolean onTrackballEvent(MotionEvent event)
           
 void onTrimMemory(int level)
           
 void onUserInteraction()
           
protected  void onUserLeaveHint()
           
 void onWindowAttributesChanged(WindowManager.LayoutParams params)
           
 void onWindowFocusChanged(boolean hasFocus)
           
 ActionMode onWindowStartingActionMode(ActionMode.Callback callback)
           
 void openContextMenu(View view)
           
 void openOptionsMenu()
           
 void overridePendingTransition(int enterAnim, int exitAnim)
           
 void recreate()
           
 void registerForContextMenu(View view)
           
 void removeDialog(int id)
           
 boolean requestWindowFeature(int featureId)
           
 void runOnUiThread(Runnable action)
           
 void setContentView(int layoutResID)
           
 void setContentView(View view)
           
 void setContentView(View view, ViewGroup.LayoutParams params)
           
 void setDefaultKeyMode(int mode)
           
 void setFeatureDrawable(int featureId, Drawable drawable)
           
 void setFeatureDrawableAlpha(int featureId, int alpha)
           
 void setFeatureDrawableResource(int featureId, int resId)
           
 void setFeatureDrawableUri(int featureId, Uri uri)
           
 void setFinishOnTouchOutside(boolean finish)
           
 void setIntent(Intent newIntent)
           
 void setProgress(int progress)
           
 void setProgressBarIndeterminate(boolean indeterminate)
           
 void setProgressBarIndeterminateVisibility(boolean visible)
           
 void setProgressBarVisibility(boolean visible)
           
 void setRequestedOrientation(int requestedOrientation)
           
 void setResult(int resultCode)
           
 void setResult(int resultCode, Intent data)
           
 void setSecondaryProgress(int secondaryProgress)
           
 void setTitle(CharSequence title)
           
 void setTitle(int titleId)
           
 void setTitleColor(int textColor)
           
 void setVisible(boolean visible)
           
 void setVolumeControlStream(int streamType)
           
 void showDialog(int id)
           
 boolean showDialog(int id, Bundle args)
           
 ActionMode startActionMode(ActionMode.Callback callback)
           
 void startActivities(Intent[] intents)
           
 void startActivity(Intent intent)
           
 void startActivityForResult(Intent intent, int requestCode)
           
 void startActivityFromChild(Activity child, Intent intent, int requestCode)
           
 void startActivityFromFragment(Fragment fragment, Intent intent, int requestCode)
           
 boolean startActivityIfNeeded(Intent intent, int requestCode)
           
 void startIntentSender(IntentSender intent, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
           
 void startIntentSenderForResult(IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
           
 void startIntentSenderFromChild(Activity child, IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
           
 void startManagingCursor(Cursor c)
           
 boolean startNextMatchingActivity(Intent intent)
           
 void startSearch(String initialQuery, boolean selectInitialQuery, Bundle appSearchData, boolean globalSearch)
           
 void stopManagingCursor(Cursor c)
           
 void takeKeyEvents(boolean get)
           
 void triggerSearch(String query, Bundle appSearchData)
           
 void unregisterForContextMenu(View view)
           
 
Methods inherited from class android.view.ContextThemeWrapper
attachBaseContext, getTheme, setTheme
 
Methods inherited from class android.content.ContextWrapper
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalFilesDir, getFilesDir, getFileStreamPath, getMainLooper, getObbDir, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiver
 
Methods inherited from class android.content.Context
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_CANCELED

public static final int RESULT_CANCELED
See Also:
Constant Field Values

RESULT_OK

public static final int RESULT_OK
See Also:
Constant Field Values

RESULT_FIRST_USER

public static final int RESULT_FIRST_USER
See Also:
Constant Field Values

FOCUSED_STATE_SET

protected static final int[] FOCUSED_STATE_SET

DEFAULT_KEYS_DISABLE

public static final int DEFAULT_KEYS_DISABLE
See Also:
Constant Field Values

DEFAULT_KEYS_DIALER

public static final int DEFAULT_KEYS_DIALER
See Also:
Constant Field Values

DEFAULT_KEYS_SHORTCUT

public static final int DEFAULT_KEYS_SHORTCUT
See Also:
Constant Field Values

DEFAULT_KEYS_SEARCH_LOCAL

public static final int DEFAULT_KEYS_SEARCH_LOCAL
See Also:
Constant Field Values

DEFAULT_KEYS_SEARCH_GLOBAL

public static final int DEFAULT_KEYS_SEARCH_GLOBAL
See Also:
Constant Field Values
Constructor Detail

Activity

public Activity()
Method Detail

getIntent

public Intent getIntent()

setIntent

public void setIntent(Intent newIntent)

getApplication

public final Application getApplication()

isChild

public final boolean isChild()

getParent

public final Activity getParent()

getWindowManager

public WindowManager getWindowManager()

getWindow

public Window getWindow()

getLoaderManager

public LoaderManager getLoaderManager()

getCurrentFocus

public View getCurrentFocus()

onCreate

protected void onCreate(Bundle savedInstanceState)

onRestoreInstanceState

protected void onRestoreInstanceState(Bundle savedInstanceState)

onPostCreate

protected void onPostCreate(Bundle savedInstanceState)

onStart

protected void onStart()

onRestart

protected void onRestart()

onResume

protected void onResume()

onPostResume

protected void onPostResume()

onNewIntent

protected void onNewIntent(Intent intent)

onSaveInstanceState

protected void onSaveInstanceState(Bundle outState)

onPause

protected void onPause()

onUserLeaveHint

protected void onUserLeaveHint()

onCreateThumbnail

public boolean onCreateThumbnail(Bitmap outBitmap,
                                 Canvas canvas)

onCreateDescription

public CharSequence onCreateDescription()

onStop

protected void onStop()

onDestroy

protected void onDestroy()

onConfigurationChanged

public void onConfigurationChanged(Configuration newConfig)
Specified by:
onConfigurationChanged in interface ComponentCallbacks

getChangingConfigurations

public int getChangingConfigurations()

getLastNonConfigurationInstance

public Object getLastNonConfigurationInstance()

onRetainNonConfigurationInstance

public Object onRetainNonConfigurationInstance()

onLowMemory

public void onLowMemory()
Specified by:
onLowMemory in interface ComponentCallbacks

onTrimMemory

public void onTrimMemory(int level)
Specified by:
onTrimMemory in interface ComponentCallbacks2

getFragmentManager

public FragmentManager getFragmentManager()

onAttachFragment

public void onAttachFragment(Fragment fragment)

managedQuery

public final Cursor managedQuery(Uri uri,
                                 String[] projection,
                                 String selection,
                                 String[] selectionArgs,
                                 String sortOrder)

startManagingCursor

public void startManagingCursor(Cursor c)

stopManagingCursor

public void stopManagingCursor(Cursor c)

findViewById

public View findViewById(int id)

getActionBar

public ActionBar getActionBar()

setContentView

public void setContentView(int layoutResID)

setContentView

public void setContentView(View view)

setContentView

public void setContentView(View view,
                           ViewGroup.LayoutParams params)

addContentView

public void addContentView(View view,
                           ViewGroup.LayoutParams params)

setFinishOnTouchOutside

public void setFinishOnTouchOutside(boolean finish)

setDefaultKeyMode

public final void setDefaultKeyMode(int mode)

onKeyDown

public boolean onKeyDown(int keyCode,
                         KeyEvent event)
Specified by:
onKeyDown in interface KeyEvent.Callback

onKeyLongPress

public boolean onKeyLongPress(int keyCode,
                              KeyEvent event)
Specified by:
onKeyLongPress in interface KeyEvent.Callback

onKeyUp

public boolean onKeyUp(int keyCode,
                       KeyEvent event)
Specified by:
onKeyUp in interface KeyEvent.Callback

onKeyMultiple

public boolean onKeyMultiple(int keyCode,
                             int repeatCount,
                             KeyEvent event)
Specified by:
onKeyMultiple in interface KeyEvent.Callback

onBackPressed

public void onBackPressed()

onKeyShortcut

public boolean onKeyShortcut(int keyCode,
                             KeyEvent event)

onTouchEvent

public boolean onTouchEvent(MotionEvent event)

onTrackballEvent

public boolean onTrackballEvent(MotionEvent event)

onGenericMotionEvent

public boolean onGenericMotionEvent(MotionEvent event)

onUserInteraction

public void onUserInteraction()

onWindowAttributesChanged

public void onWindowAttributesChanged(WindowManager.LayoutParams params)
Specified by:
onWindowAttributesChanged in interface Window.Callback

onContentChanged

public void onContentChanged()
Specified by:
onContentChanged in interface Window.Callback

onWindowFocusChanged

public void onWindowFocusChanged(boolean hasFocus)
Specified by:
onWindowFocusChanged in interface Window.Callback

onAttachedToWindow

public void onAttachedToWindow()
Specified by:
onAttachedToWindow in interface Window.Callback

onDetachedFromWindow

public void onDetachedFromWindow()
Specified by:
onDetachedFromWindow in interface Window.Callback

hasWindowFocus

public boolean hasWindowFocus()

dispatchKeyEvent

public boolean dispatchKeyEvent(KeyEvent event)
Specified by:
dispatchKeyEvent in interface Window.Callback

dispatchKeyShortcutEvent

public boolean dispatchKeyShortcutEvent(KeyEvent event)
Specified by:
dispatchKeyShortcutEvent in interface Window.Callback

dispatchTouchEvent

public boolean dispatchTouchEvent(MotionEvent ev)
Specified by:
dispatchTouchEvent in interface Window.Callback

dispatchTrackballEvent

public boolean dispatchTrackballEvent(MotionEvent ev)
Specified by:
dispatchTrackballEvent in interface Window.Callback

dispatchGenericMotionEvent

public boolean dispatchGenericMotionEvent(MotionEvent ev)
Specified by:
dispatchGenericMotionEvent in interface Window.Callback

dispatchPopulateAccessibilityEvent

public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event)
Specified by:
dispatchPopulateAccessibilityEvent in interface Window.Callback

onCreatePanelView

public View onCreatePanelView(int featureId)
Specified by:
onCreatePanelView in interface Window.Callback

onCreatePanelMenu

public boolean onCreatePanelMenu(int featureId,
                                 Menu menu)
Specified by:
onCreatePanelMenu in interface Window.Callback

onPreparePanel

public boolean onPreparePanel(int featureId,
                              View view,
                              Menu menu)
Specified by:
onPreparePanel in interface Window.Callback

onMenuOpened

public boolean onMenuOpened(int featureId,
                            Menu menu)
Specified by:
onMenuOpened in interface Window.Callback

onMenuItemSelected

public boolean onMenuItemSelected(int featureId,
                                  MenuItem item)
Specified by:
onMenuItemSelected in interface Window.Callback

onPanelClosed

public void onPanelClosed(int featureId,
                          Menu menu)
Specified by:
onPanelClosed in interface Window.Callback

invalidateOptionsMenu

public void invalidateOptionsMenu()

onCreateOptionsMenu

public boolean onCreateOptionsMenu(Menu menu)

onPrepareOptionsMenu

public boolean onPrepareOptionsMenu(Menu menu)

onOptionsItemSelected

public boolean onOptionsItemSelected(MenuItem item)

onOptionsMenuClosed

public void onOptionsMenuClosed(Menu menu)

openOptionsMenu

public void openOptionsMenu()

closeOptionsMenu

public void closeOptionsMenu()

onCreateContextMenu

public void onCreateContextMenu(ContextMenu menu,
                                View v,
                                ContextMenu.ContextMenuInfo menuInfo)
Specified by:
onCreateContextMenu in interface View.OnCreateContextMenuListener

registerForContextMenu

public void registerForContextMenu(View view)

unregisterForContextMenu

public void unregisterForContextMenu(View view)

openContextMenu

public void openContextMenu(View view)

closeContextMenu

public void closeContextMenu()

onContextItemSelected

public boolean onContextItemSelected(MenuItem item)

onContextMenuClosed

public void onContextMenuClosed(Menu menu)

onCreateDialog

protected Dialog onCreateDialog(int id)

onCreateDialog

protected Dialog onCreateDialog(int id,
                                Bundle args)

onPrepareDialog

protected void onPrepareDialog(int id,
                               Dialog dialog)

onPrepareDialog

protected void onPrepareDialog(int id,
                               Dialog dialog,
                               Bundle args)

showDialog

public final void showDialog(int id)

showDialog

public final boolean showDialog(int id,
                                Bundle args)

dismissDialog

public final void dismissDialog(int id)

removeDialog

public final void removeDialog(int id)

onSearchRequested

public boolean onSearchRequested()
Specified by:
onSearchRequested in interface Window.Callback

startSearch

public void startSearch(String initialQuery,
                        boolean selectInitialQuery,
                        Bundle appSearchData,
                        boolean globalSearch)

triggerSearch

public void triggerSearch(String query,
                          Bundle appSearchData)

takeKeyEvents

public void takeKeyEvents(boolean get)

requestWindowFeature

public final boolean requestWindowFeature(int featureId)

setFeatureDrawableResource

public final void setFeatureDrawableResource(int featureId,
                                             int resId)

setFeatureDrawableUri

public final void setFeatureDrawableUri(int featureId,
                                        Uri uri)

setFeatureDrawable

public final void setFeatureDrawable(int featureId,
                                     Drawable drawable)

setFeatureDrawableAlpha

public final void setFeatureDrawableAlpha(int featureId,
                                          int alpha)

getLayoutInflater

public LayoutInflater getLayoutInflater()

getMenuInflater

public MenuInflater getMenuInflater()

onApplyThemeResource

protected void onApplyThemeResource(Resources.Theme theme,
                                    int resid,
                                    boolean first)
Overrides:
onApplyThemeResource in class ContextThemeWrapper

startActivityForResult

public void startActivityForResult(Intent intent,
                                   int requestCode)

startIntentSenderForResult

public void startIntentSenderForResult(IntentSender intent,
                                       int requestCode,
                                       Intent fillInIntent,
                                       int flagsMask,
                                       int flagsValues,
                                       int extraFlags)
                                throws IntentSender.SendIntentException
Throws:
IntentSender.SendIntentException

startActivity

public void startActivity(Intent intent)
Overrides:
startActivity in class ContextWrapper

startActivities

public void startActivities(Intent[] intents)
Overrides:
startActivities in class ContextWrapper

startIntentSender

public void startIntentSender(IntentSender intent,
                              Intent fillInIntent,
                              int flagsMask,
                              int flagsValues,
                              int extraFlags)
                       throws IntentSender.SendIntentException
Overrides:
startIntentSender in class ContextWrapper
Throws:
IntentSender.SendIntentException

startActivityIfNeeded

public boolean startActivityIfNeeded(Intent intent,
                                     int requestCode)

startNextMatchingActivity

public boolean startNextMatchingActivity(Intent intent)

startActivityFromChild

public void startActivityFromChild(Activity child,
                                   Intent intent,
                                   int requestCode)

startActivityFromFragment

public void startActivityFromFragment(Fragment fragment,
                                      Intent intent,
                                      int requestCode)

startIntentSenderFromChild

public void startIntentSenderFromChild(Activity child,
                                       IntentSender intent,
                                       int requestCode,
                                       Intent fillInIntent,
                                       int flagsMask,
                                       int flagsValues,
                                       int extraFlags)
                                throws IntentSender.SendIntentException
Throws:
IntentSender.SendIntentException

overridePendingTransition

public void overridePendingTransition(int enterAnim,
                                      int exitAnim)

setResult

public final void setResult(int resultCode)

setResult

public final void setResult(int resultCode,
                            Intent data)

getCallingPackage

public String getCallingPackage()

getCallingActivity

public ComponentName getCallingActivity()

setVisible

public void setVisible(boolean visible)

isFinishing

public boolean isFinishing()

isChangingConfigurations

public boolean isChangingConfigurations()

recreate

public void recreate()

finish

public void finish()

finishFromChild

public void finishFromChild(Activity child)

finishActivity

public void finishActivity(int requestCode)

finishActivityFromChild

public void finishActivityFromChild(Activity child,
                                    int requestCode)

onActivityResult

protected void onActivityResult(int requestCode,
                                int resultCode,
                                Intent data)

createPendingResult

public PendingIntent createPendingResult(int requestCode,
                                         Intent data,
                                         int flags)

setRequestedOrientation

public void setRequestedOrientation(int requestedOrientation)

getRequestedOrientation

public int getRequestedOrientation()

getTaskId

public int getTaskId()

isTaskRoot

public boolean isTaskRoot()

moveTaskToBack

public boolean moveTaskToBack(boolean nonRoot)

getLocalClassName

public String getLocalClassName()

getComponentName

public ComponentName getComponentName()

getPreferences

public SharedPreferences getPreferences(int mode)

getSystemService

public Object getSystemService(String name)
Overrides:
getSystemService in class ContextThemeWrapper

setTitle

public void setTitle(CharSequence title)

setTitle

public void setTitle(int titleId)

setTitleColor

public void setTitleColor(int textColor)

getTitle

public final CharSequence getTitle()

getTitleColor

public final int getTitleColor()

onTitleChanged

protected void onTitleChanged(CharSequence title,
                              int color)

onChildTitleChanged

protected void onChildTitleChanged(Activity childActivity,
                                   CharSequence title)

setProgressBarVisibility

public final void setProgressBarVisibility(boolean visible)

setProgressBarIndeterminateVisibility

public final void setProgressBarIndeterminateVisibility(boolean visible)

setProgressBarIndeterminate

public final void setProgressBarIndeterminate(boolean indeterminate)

setProgress

public final void setProgress(int progress)

setSecondaryProgress

public final void setSecondaryProgress(int secondaryProgress)

setVolumeControlStream

public final void setVolumeControlStream(int streamType)

getVolumeControlStream

public final int getVolumeControlStream()

runOnUiThread

public final void runOnUiThread(Runnable action)

onCreateView

public View onCreateView(String name,
                         Context context,
                         AttributeSet attrs)
Specified by:
onCreateView in interface LayoutInflater.Factory

onCreateView

public View onCreateView(View parent,
                         String name,
                         Context context,
                         AttributeSet attrs)
Specified by:
onCreateView in interface LayoutInflater.Factory2

dump

public void dump(String prefix,
                 FileDescriptor fd,
                 PrintWriter writer,
                 String[] args)

startActionMode

public ActionMode startActionMode(ActionMode.Callback callback)

onWindowStartingActionMode

public ActionMode onWindowStartingActionMode(ActionMode.Callback callback)
Specified by:
onWindowStartingActionMode in interface Window.Callback

onActionModeStarted

public void onActionModeStarted(ActionMode mode)
Specified by:
onActionModeStarted in interface Window.Callback

onActionModeFinished

public void onActionModeFinished(ActionMode mode)
Specified by:
onActionModeFinished in interface Window.Callback


Copyright © 2008-2012. All Rights Reserved.