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

Calling startActivity() from outside of an Activity #1

Closed
Bhat015 opened this issue Nov 16, 2021 · 2 comments
Closed

Calling startActivity() from outside of an Activity #1

Bhat015 opened this issue Nov 16, 2021 · 2 comments

Comments

@Bhat015
Copy link

Bhat015 commented Nov 16, 2021

Unable to open the battery settings. it throws this error

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(error, Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?, null, android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

@Ali1Ammar
Copy link
Owner

hii
could you test if this this branch acitivityaware solve the bugs

@Bhat015
Copy link
Author

Bhat015 commented Nov 16, 2021

Hi,
tested with the branch and it works fine without any issues.
Thanks for resolving this.

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

2 participants