Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
出现问题原因:不是在activity中调用 startActivity方法;
解决:intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);