Available Methods
- putExtra ( )
- setAction ( )
- getStringExtra ( )
- addFlags ( )
- setFlags ( )
- ACTION_VIEW
- getAction ( )
- setData ( )
- getIntExtra ( )
- setType ( )
- putExtras ( )
- addCategory ( )
- getData ( )
- setClass ( )
- getParcelableExtra ( )
- getExtras ( )
- setPackage ( )
- setDataAndType ( )
- getBooleanExtra ( )
- hasExtra ( )
- setComponent ( )
- ACTION_SEND
- setClassName ( )
- resolveActivity ( )
- getSerializableExtra ( )
- ACTION_MAIN
- getLongExtra ( )
- prepareToLeaveProcess ( )
- getComponent ( )
- ACTION_GET_CONTENT
- resolveTypeIfNeeded ( )
- ACTION_PICK
- putParcelableArrayListExtra ( )
- ACTION_SENDTO
- getStringArrayListExtra ( )
- createChooser ( )
- getBundleExtra ( )
- getFlags ( )
- ACTION_MEDIA_SCANNER_SCAN_FILE
- getParcelableArrayListExtra ( )
- putStringArrayListExtra ( )
- getByteArrayExtra ( )
- getDataString ( )
- FLAG_ACTIVITY_NEW_TASK
- ACTION_DIAL
- FLAG_GRANT_READ_URI_PERMISSION
- getType ( )
- ACTION_BATTERY_CHANGED
- ACTION_DELETE
- getStringArrayExtra ( )
- ACTION_CALL
- ACTION_OPEN_DOCUMENT
- parseUri ( )
- getPackage ( )
- setExtrasClassLoader ( )
- getCategories ( )
- FLAG_GRANT_WRITE_URI_PERMISSION
- toUri ( )
- getScheme ( )
- getIntArrayExtra ( )
- removeExtra ( )
- ACTION_MEDIA_BUTTON
- ACTION_SCREEN_OFF
- toString ( )
- ACTION_SCREEN_ON
- getDoubleExtra ( )
- ACTION_OPEN_DOCUMENT_TREE
- ACTION_SEND_MULTIPLE
- getFloatExtra ( )
- getClipData ( )
- setAllowFds ( )
- ACTION_DEVICE_STORAGE_LOW
- ACTION_TIMEZONE_CHANGED
- getParcelableArrayExtra ( )
- putIntegerArrayListExtra ( )
- setClipData ( )
- ACTION_SEARCH
- hasCategory ( )
- ACTION_EDIT
- ACTION_CREATE_DOCUMENT
- ACTION_WEB_SEARCH
- resolveActivityInfo ( )
- ACTION_CHOOSER
- FLAG_GRANT_PREFIX_URI_PERMISSION
- ACTION_HEADSET_PLUG
- ACTION_TIME_CHANGED
- getLongArrayExtra ( )
- ACTION_CLOSE_SYSTEM_DIALOGS
- ACTION_SET_WALLPAPER
- ACTION_BOOT_COMPLETED
- getIntegerArrayListExtra ( )
- getCharSequenceExtra ( )
- FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY
- setSourceBounds ( )
- FLAG_DEBUG_LOG_RESOLUTION
- ACTION_PACKAGE_REMOVED
- migrateExtraStreamToClipData ( )
- ACTION_PACKAGE_ADDED
- ACTION_INSERT
- ACTION_INSTALL_PACKAGE
- FLAG_ACTIVITY_NEW_DOCUMENT
- ACTION_USER_PRESENT
- getShortExtra ( )
- ShortcutIconResource ( )
- setSelector ( )
- replaceExtras ( )
- getSelector ( )
- makeRestartActivityTask ( )
- ACTION_UNINSTALL_PACKAGE
- filterEquals ( )
- FLAG_GRANT_PERSISTABLE_URI_PERMISSION
- ACTION_POWER_CONNECTED
- ACTION_BATTERY_OKAY
- EXTRA_DOCK_STATE_LE_DESK
- getDoubleArrayExtra ( )
- ACTION_ATTACH_DATA
- normalizeMimeType ( )
- FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
- getCharSequenceArrayListExtra ( )
- removeCategory ( )
- resolveSystemService ( )
- getSourceBounds ( )
- ACTION_CREATE_SHORTCUT
- makeMainActivity ( )
- getCharExtra ( )
- resolveType ( )
- FilterComparison ( )
- makeMainSelectorActivity ( )
- clone ( )
- FLAG_ACTIVITY_BROUGHT_TO_FRONT
- prepareToEnterProcess ( )
- ACTION_MANAGED_PROFILE_REMOVED
- EXTRA_DOCK_STATE_HE_DESK
- ACTION_MEDIA_MOUNTED
- ACTION_INSERT_OR_EDIT
- CATEGORY_CAR_DOCK
- ACTION_NEW_OUTGOING_CALL
- putCharSequenceArrayListExtra ( )
- ACTION_USER_UNLOCKED
- writeToParcel ( )
- ACTION_APPLICATION_RESTRICTIONS_CHANGED
- ACTION_AIRPLANE_MODE_CHANGED
- ACTION_ASSIST
- ACTION_PACKAGE_DATA_CLEARED
- ACTION_MEDIA_EJECT
- ACTION_POWER_DISCONNECTED
- ACTION_APP_ERROR
- getBooleanArrayExtra ( )
- ACTION_PACKAGE_REPLACED
- ACTION_WALLPAPER_CHANGED
- getFloatArrayExtra ( )
- EXTRA_DOCK_STATE_UNDOCKED
Related Classes
- java.io.File
- android.os.Bundle
- android.content.Context
- android.view.View
- java.util.Date
- android.util.Log
- android.widget.TextView
- android.view.ViewGroup
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.graphics.Color
- android.os.Handler
- android.net.Uri
- android.view.MenuItem
- android.widget.Button
- android.graphics.Bitmap
- android.text.TextUtils
- android.widget.LinearLayout
- android.content.pm.PackageManager
- android.support.annotation.Nullable
- android.widget.EditText
- android.content.SharedPreferences
Java Code Examples for android.content.Intent#makeRestartActivityTask()
The following examples show how to use
android.content.Intent#makeRestartActivityTask() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AppUtils.java From Android-utils with Apache License 2.0 | 5 votes |
/** * Relaunch current app */ public static void relaunchApp() { Intent i = IntentUtils.getLaunchAppIntent(UtilsApp.getApp().getPackageName(), false); if (i == null) return; ComponentName cn = i.getComponent(); Intent ii = Intent.makeRestartActivityTask(cn); UtilsApp.getApp().startActivity(ii); System.exit(0); }
Example 2
Source File: SkyTubeApp.java From SkyTube with GNU General Public License v3.0 | 5 votes |
/** * Restart the app. */ public static void restartApp() { Context context = getContext(); PackageManager packageManager = context.getPackageManager(); Intent intent = packageManager.getLaunchIntentForPackage(context.getPackageName()); ComponentName componentName = intent.getComponent(); Intent mainIntent = Intent.makeRestartActivityTask(componentName); context.startActivity(mainIntent); System.exit(0); }
Example 3
Source File: StatusBarNotifications.java From codeexamples-android with Eclipse Public License 1.0 | 5 votes |
private PendingIntent makeDefaultIntent() { // A typical convention for notifications is to launch the user deeply // into an application representing the data in the notification; to // accomplish this, we can build an array of intents to insert the back // stack stack history above the item being displayed. Intent[] intents = new Intent[4]; // First: root activity of ApiDemos. // This is a convenient way to make the proper Intent to launch and // reset an application's task. intents[0] = Intent.makeRestartActivityTask(new ComponentName(this, com.example.android.apis.ApiDemos.class)); // "App" intents[1] = new Intent(this, com.example.android.apis.ApiDemos.class); intents[1].putExtra("com.example.android.apis.Path", "App"); // "App/Notification" intents[2] = new Intent(this, com.example.android.apis.ApiDemos.class); intents[2].putExtra("com.example.android.apis.Path", "App/Notification"); // Now the activity to display to the user. intents[3] = new Intent(this, StatusBarNotifications.class); // The PendingIntent to launch our activity if the user selects this // notification. Note the use of FLAG_UPDATE_CURRENT so that if there // is already an active matching pending intent, we will update its // extras (and other Intents in the array) to be the ones passed in here. PendingIntent contentIntent = PendingIntent.getActivities(this, 0, intents, PendingIntent.FLAG_UPDATE_CURRENT); return contentIntent; }
Example 4
Source File: j.java From MiBandDecompiled with Apache License 2.0 | 4 votes |
public static Intent b(ComponentName componentname) { return Intent.makeRestartActivityTask(componentname); }
Example 5
Source File: IntentCompatHoneycomb.java From CodenameOne with GNU General Public License v2.0 | 4 votes |
public static Intent makeRestartActivityTask(ComponentName mainActivity) { return Intent.makeRestartActivityTask(mainActivity); }
Example 6
Source File: IntentCompatHoneycomb.java From adt-leanback-support with Apache License 2.0 | 4 votes |
public static Intent makeRestartActivityTask(ComponentName mainActivity) { return Intent.makeRestartActivityTask(mainActivity); }
Example 7
Source File: IntentCompatHoneycomb.java From V.FlyoutTest with MIT License | 4 votes |
public static Intent makeRestartActivityTask(ComponentName mainActivity) { return Intent.makeRestartActivityTask(mainActivity); }
Example 8
Source File: IntentCompatHoneycomb.java From guideshow with MIT License | 4 votes |
public static Intent makeRestartActivityTask(ComponentName mainActivity) { return Intent.makeRestartActivityTask(mainActivity); }