Methods Summary |
---|
private void | launchClearTask()
Intent intent = new Intent(getIntent()).
addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP).
setClass(this, ClearTop.class);
startActivity(intent);
|
public void | onCreate(android.os.Bundle icicle)
super.onCreate(icicle);
if (ActivityTests.DEBUG_LIFECYCLE) Log.v("test", "CREATE tested "
+ Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent());
if (LaunchpadActivity.FORWARD_RESULT.equals(getIntent().getAction())) {
Intent intent = new Intent(getIntent());
intent.setAction(DELIVER_RESULT);
intent.setFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT);
startActivity(intent);
if (ActivityTests.DEBUG_LIFECYCLE) Log.v("test", "Finishing tested "
+ Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent());
finish();
} else if (DELIVER_RESULT.equals(getIntent().getAction())) {
setResult(RESULT_OK, (new Intent()).setAction(
LaunchpadActivity.RETURNED_RESULT));
if (ActivityTests.DEBUG_LIFECYCLE) Log.v("test", "Finishing tested "
+ Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent());
finish();
} else if (CLEAR_TASK.equals(getIntent().getAction())) {
if (!getIntent().getBooleanExtra(ClearTop.WAIT_CLEAR_TASK, false)) {
launchClearTask();
}
}
|
protected void | onRestoreInstanceState(android.os.Bundle state)
super.onRestoreInstanceState(state);
|
protected void | onResume()
super.onResume();
if (ActivityTests.DEBUG_LIFECYCLE) Log.v("test", "RESUME tested "
+ Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent());
if (CLEAR_TASK.equals(getIntent().getAction())) {
if (getIntent().getBooleanExtra(ClearTop.WAIT_CLEAR_TASK, false)) {
Looper.myLooper().myQueue().addIdleHandler(new Idler());
}
} else {
Looper.myLooper().myQueue().addIdleHandler(new Idler());
}
|
protected void | onSaveInstanceState(android.os.Bundle outState)
super.onSaveInstanceState(outState);
|
protected void | onStop()
super.onStop();
if (ActivityTests.DEBUG_LIFECYCLE) Log.v("test", "STOP tested "
+ Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent());
|