DDComponentForAndroid icon indicating copy to clipboard operation
DDComponentForAndroid copied to clipboard

android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

Open shaziln opened this issue 7 years ago • 3 comments

image 如果context 不是 Activity类型,需要添加FLAG_ACTIVITY_NEW_TASK,否则会无法跳转

shaziln avatar May 31 '18 07:05 shaziln

下个版本会开放一个decorator提供对intent的装饰

leobert-lan avatar Jun 07 '18 02:06 leobert-lan

sorry,会在JIMU项目中提供,DDAndroidComponent这边不再提交PR

leobert-lan avatar Jun 07 '18 02:06 leobert-lan

image 如果context 不是 Activity类型,需要添加FLAG_ACTIVITY_NEW_TASK,否则会无法跳转

建议使用 Component,这个很久不维护了

xiaojinzi123 avatar May 04 '19 04:05 xiaojinzi123