Is it in any way possible to launch an activity from the main function without having a UI? i.e. is there a way to create a sort of \"wrapper\" around another activity, i.e.
Looks similar to the question asked here: Removing an activity from the history stack
If it is, then you can use:
FLAG_ACTIVITY_NO_HISTORY
This should work to wipe activities off of the stack.
If you need to exclude from recent apps (long press home key) you can use this flag:
FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS