在非Activity中使用startActivity:Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag
问题描述
在APP 1中启动APP 2中的Activity。
clang++: error: unable to execute command: Killedclang++: error: clang frontend command failed due to signal (use -v to see invocation)clang version 3.
/**********************************************************************************
* Only the original thread that created a view hierarchy can touch its views.
* 说明:
* 自定义view的时候出现这个错误,是用错了方法。