// Remove any pending messages that might not be serviced yet.
// number of dependencies here; the rest are deferred to init().
// us honest and minimize usage of WebViewClassic internals when binding the proxy.
// at runtime. For user (release) builds, don't allow this.
if (DEBUG) Log.v(LOGTAG, "Falling back to default provider: "
* detached from the window manager.
* @param intent The description of the activity to start.
"Calling startActivity() from outside of an Activity "
+ " context requires the FLAG_ACTIVITY_NEW_TASK flag."
* Retrieve the system's default/global activity manager.
// Is this activity's application already running?
Slog.w(TAG, "Exception when starting activity "
// we are back active so skip it.
// Make sure we are running with the most recent config.
// retain the current state it has.
// part of stopping the activity.
"Unable to pause activity "
// manager to stop us.
final int forwardBit = isForward ?
// then go ahead and add the window.
// the array from being modified while we iterate it.
* This is the internal entry point for handling Activity.finish().
* @param token The Binder token referencing the Activity we want to finish.
* @param resultCode Result code, if any, from this Activity.
* @param resultData Result data (Intent), if any, from this Activity.
* @return Returns true if the activity successfully finished, or false if it is still running.
// Find the first activity that is not finishing.
* some reason it is being left as-is.
* list, or false if it is still in the list and will be removed later.
// The next activity is now the front of the task.
// but propagate it up to the next activity.
// to the pending list so we can correctly update the clients.
// Tell window manager to prepare for this one to be removed.
// it is done pausing; else we can just directly finish it here.
// finishing until the resumed one becomes visible.
// make sure the record is cleaned out of other places.
// activity into the stopped state and then finish it.
// window is being added.
// func doesn't allow null...  does it matter if we clear them?
// done by dispatchDetachedFromWindow will cause havoc on return.