Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shaziln opened this issue May 31, 2018 · 3 comments

Comments

@shaziln
Copy link

shaziln commented May 31, 2018

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

@leobert-lan
Copy link
Contributor

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

@leobert-lan
Copy link
Contributor

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

@xiaojinzi123
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants