startNewActivity

inline fun <T> Context.startNewActivity(params: Bundle = Bundle.EMPTY, options: Bundle = Bundle.EMPTY)

Start a new activity from context and avoid potential crashes from early API levels

Parameters

params

Bundle of extras to add to the target activity

options

Additional options for how the Activity should be started from