1. 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?
public static void goToBuyOrderDetail(Context context, int autoId) {
Intent intent = new Intent(context, TaskReciverOrderDetailActivity.class);
intent.putExtra(OrderConstBean.ORDER_AUTO_ID, autoId);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //如果从activity外进入,需要new_task
context.startActivity(intent);
}