BUG:
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);