startActivityAndFinishAll

inline fun <T : Activity> Context.startActivityAndFinishAll(bundle: Bundle? = null)

Start an activity of a specified class. All stacked activities will be destroyed.

Parameters

bundle

An bundle info to the intent, which the default is null.

See also