Post not yet marked as solved
Post marked as unsolved with 2 replies, 1,460 views
Guys,I'm working on a child protection app which can block and notify when children trying to use phone while driving. This is the functionalty of my App.My application is running in the backgroud. I'm using location based service to keep it running in background.When user trying to use an app while driving , I want to identify that app and if that's a social media app or chatting app , I want to notify user not to use that and also send an alert to parents.To do that, I want to identify what is the app currently running in the foreground using my background app. Is there any way to get the name of the foreground app using a background service ?