landers141
Lurker
I'm currently using Android Studio to create an App.
I want one of the features to block apps, after you activate this by clicking on a button.
So that the app moves in the background, after clicking the button and when you open for example Youtube, it pops up and says something like: "Deactivate this program first".
The basic idea is of course a Clicklistener on this button to start the program
But know I want to know, which commmand you have to use so that the app is permanently supervising, which app you are opening/ have openend, even though the app moved to the background.
Some kind of Clicklistener for this (in the example:Youtube) exact app.
I'm fairly new to App programming
Thanks in advance.
Example Apps
https://www.forestapp.cc/
https://www.appblock.app/
I want one of the features to block apps, after you activate this by clicking on a button.
So that the app moves in the background, after clicking the button and when you open for example Youtube, it pops up and says something like: "Deactivate this program first".
The basic idea is of course a Clicklistener on this button to start the program
But know I want to know, which commmand you have to use so that the app is permanently supervising, which app you are opening/ have openend, even though the app moved to the background.
Some kind of Clicklistener for this (in the example:Youtube) exact app.
I'm fairly new to App programming
Thanks in advance.
Example Apps
https://www.forestapp.cc/
https://www.appblock.app/