Closed vishalvasoya closed 6 years ago
In short you can't. The only way is to redirect the user to the screen, android gives you no control over what happens on that screen, at best you could keep a flag so whenever that screen is opened you could alternate the flag.
Thanks very much for your response.... 😊
On Sun, Apr 22, 2018, 3:59 PM Jude Fernandes notifications@github.com wrote:
In short you can't. The only way is to redirect the user to the screen, android gives you no control over what happens on that screen, at best you could keep a flag so whenever that screen is opened you could alternate the flag.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/judemanutd/AutoStarter/issues/1#issuecomment-383370969, or mute the thread https://github.com/notifications/unsubscribe-auth/AZastZHXqskHZSq34nHol6f9u5AgmlIdks5trFuNgaJpZM4TezxE .
your solution has completed and its works properly , but how to know AutoStart permission is on or off in android device. How to check AutoStart option is already on for my App in Xiaomi (oppo / vivo) phone Security App programmatically in android ,