gotoActivity supports a previous activity.

We can tell which activity to go back to using
gotoActivity(previousActivity, nextActivity).
Added: Connect does not run on main thread.
Lock user into app.