Task Killer (Monitoring App)

carloz

Member
Licensed User
Longtime User
Hi all,

i have got a job to create an app which does not allow the user to use any apps other than predesignated list of allowed apps.

i have used the oslibrary to get RunningAppProcessInfo and killbackgroundprocess in a service to achieve the above requirement. it all works perfectly except that when any not allowed app in in the foreground it dosent get killed. so i have to do an intent to the home screen everytime i wantto kill a app, which basically makes the phone useless

i hope i am explaining this correctly
can we query if an app is in foreground using pid or package name?

is there a workaround to this?

thnx & regards
carloz
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…