from outside of an activity context requires the flag_activity_new_task code example
Example: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.
myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);