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

AndroidRuntimeException: Calling startActivity() #2

Open
praveenbbhati opened this issue May 21, 2020 · 3 comments
Open

AndroidRuntimeException: Calling startActivity() #2

praveenbbhati opened this issue May 21, 2020 · 3 comments

Comments

@praveenbbhati
Copy link

I'm using this version autostart: ^0.0.1

Device - OnePlus 7
OS Android 10

W/System.err(28183): android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? W/System.err(28183): at android.app.ContextImpl.startActivity(ContextImpl.java:964) W/System.err(28183): at android.app.ContextImpl.startActivity(ContextImpl.java:940) W/System.err(28183): at android.content.ContextWrapper.startActivity(ContextWrapper.java:383) W/System.err(28183): at com.judemanutd.autostarter.AutoStartPermissionHelper.startIntent(AutoStartPermissionHelper.kt:325) W/System.err(28183): at com.judemanutd.autostarter.AutoStartPermissionHelper.autoStartOnePlus(AutoStartPermissionHelper.kt:308) W/System.err(28183): at com.judemanutd.autostarter.AutoStartPermissionHelper.getAutoStartPermission(AutoStartPermissionHelper.kt:118) W/System.err(28183): at com.yin.autostart.AutostartPlugin.onMethodCall(AutostartPlugin.java:53)

@ghost
Copy link

ghost commented Jun 25, 2020

i am facing same issue

@alexi190
Copy link

If any one facing this issue can use my package which is a fork of this repo.
add below line in pubspec.yaml file

autostart:
     git:
       url: git://github.com/peswanibros/yin_auto_start.git

@Bes79
Copy link

Bes79 commented Nov 16, 2021

hi! this is work for me

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