Search code examples
javaandroidandroid-studioparental-control

Block acces to other apps in android


Good evening, I am a student from Spain, developing an app in java about sports, that when it's time to workout it prohibits you to use other apps (such as candy crush, facebook...) until you finish it. I don't know how to translate this in code or even if it's possible.

I think it's not illegal, as long as you ask for permission from the user before installing?

I've seen some apps like parental control apps that do a similar thing, and I think it's the same, am I right?


Solution

  • Hi Alex it is possible just start a service when your app starts and check package name according to your prohibited lists visit also and when app closed stop the service.