Exemplo n.º 1
0
 @Override
 public void startActivity(Intent intent) {
   if (!TaskUtil.isMoveTaskToBack(this, intent))
     intent.addFlags(Intent.FLAG_ACTIVITY_NO_USER_ACTION);
   super.startActivity(intent);
 }
Exemplo n.º 2
0
 @Override
 public void startActivityForResult(Intent intent, int requestCode) {
   if (!TaskUtil.isMoveTaskToBack(this, intent))
     intent.addFlags(Intent.FLAG_ACTIVITY_NO_USER_ACTION);
   super.startActivityForResult(intent, requestCode);
 }