Available Methods
- RESULT_OK
- startActivity ( )
- startActivityForResult ( )
- finish ( )
- findViewById ( )
- getSystemService ( )
- isFinishing ( )
- runOnUiThread ( )
- getWindow ( )
- toString ( )
- RESULT_CANCELED
- overridePendingTransition ( )
- getApplicationContext ( )
- getString ( )
- getCurrentFocus ( )
- getIntent ( )
- setRequestedOrientation ( )
- getResources ( )
- obtainStyledAttributes ( )
- getActionBar ( )
- getFragmentManager ( )
- getLayoutInflater ( )
- setTheme ( )
- requestPermissions ( )
- getPackageManager ( )
- isDestroyed ( )
- setResult ( )
- getApplication ( )
- getSharedPreferences ( )
- checkSelfPermission ( )
- sendBroadcast ( )
- setTitle ( )
- isRestricted ( )
- getClass ( )
- shouldShowRequestPermissionRationale ( )
- invalidateOptionsMenu ( )
- setContentView ( )
- getPackageName ( )
- registerReceiver ( )
- getContentResolver ( )
- managedQuery ( )
- getWindowManager ( )
- startService ( )
- getApplicationInfo ( )
- isChangingConfigurations ( )
- recreate ( )
- unbindService ( )
- getBaseContext ( )
- bindService ( )
- requestWindowFeature ( )
- getRequestedOrientation ( )
- hashCode ( )
- stopService ( )
- getLocalClassName ( )
- getTheme ( )
- getPreferences ( )
- addContentView ( )
- getParent ( )
- finishAffinity ( )
- startIntentSenderForResult ( )
- unregisterReceiver ( )
- isChild ( )
- isInMultiWindowMode ( )
- getCallingPackage ( )
- getCallingActivity ( )
- equals ( )
- setProgressBarIndeterminateVisibility ( )
- setVolumeControlStream ( )
- getComponentName ( )
- MODE_PRIVATE
- getDrawable ( )
- finishAfterTransition ( )
- getTaskId ( )
- getCacheDir ( )
- moveTaskToBack ( )
- openFileOutput ( )
- setTaskDescription ( )
- getExternalFilesDir ( )
- openOrCreateDatabase ( )
Related Classes
- java.io.File
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.graphics.Color
- android.os.Handler
- android.net.Uri
- android.widget.Button
- android.graphics.Bitmap
- android.text.TextUtils
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.content.pm.PackageManager
- android.support.annotation.Nullable
- android.widget.EditText
- android.content.SharedPreferences
Java Code Examples for android.app.Activity#moveTaskToBack()
The following examples show how to use
android.app.Activity#moveTaskToBack() .
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: PassCodeManager.java From Cirrus_depricated with GNU General Public License v2.0 | 5 votes |
public void onActivityStopped(Activity activity) { if (mVisibleActivitiesCounter > 0) { mVisibleActivitiesCounter--; } setUnlockTimestamp(); PowerManager powerMgr = (PowerManager) activity.getSystemService(Context.POWER_SERVICE); if (passCodeIsEnabled() && powerMgr != null && !powerMgr.isScreenOn()) { activity.moveTaskToBack(true); } }
Example 2
Source File: CommCareLifecycleUtils.java From commcare-android with Apache License 2.0 | 5 votes |
public static void restartCommCare(Activity originActivity, Class c, boolean systemExit) { Intent intent = new Intent(originActivity, c); // Make sure that the new stack starts with the given class, and clear everything between. intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); originActivity.moveTaskToBack(true); originActivity.startActivity(intent); originActivity.finish(); if (systemExit) { System.exit(0); } }
Example 3
Source File: Navigator.java From Pioneer with Apache License 2.0 | 4 votes |
public static boolean moveToBackIfRoot(Activity activity) { return activity.moveTaskToBack(false); }
Example 4
Source File: Navigator.java From Pioneer with Apache License 2.0 | 4 votes |
public static boolean moveToBackIfRoot(Activity activity) { return activity.moveTaskToBack(false); }