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 context issue #138

Open
Kaz-z opened this issue Nov 2, 2021 · 3 comments
Open

calling startActivity() from outside of an Activity context issue #138

Kaz-z opened this issue Nov 2, 2021 · 3 comments

Comments

@Kaz-z
Copy link

Kaz-z commented Nov 2, 2021

Hi,

I intermittently receive errors about 'calling start activity from outside of an activity context' when I call the setVolume method.

I believe its due to a new activity being called here

One solution would be to add intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) above the line before starting the activity.

What do you guys think?

@moigamijunior
Copy link

Well, I got the same issue when using setVolume(0, {type: 'ring'}). Some news?

@Kaz-z
Copy link
Author

Kaz-z commented Nov 4, 2021

Its intermittent for me weirdly enough. After a clean / rebuild i dont see the error anymore. Im sure ill see it again so its best to fix this. I can contribute the change back.

Only thing is I dont know if the maintianers are active with PRs or releases.

@timh1004
Copy link

timh1004 commented Mar 7, 2022

I have the same issue sometimes when using setVolume(0, {...}).

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