Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8639037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:53:49+00:00 2026-06-12T10:53:49+00:00

I need to find solution, for killing all foreign applications, except a list of

  • 0

I need to find solution, for killing all foreign applications, except a list of allowed applications (this is task for our corporate managers with Android tablets).

Now, I killing foreign applications in this way (code works by timer in service, each 2 sec):

if (killThisProcess) {
    Log.i("Process to KILL: ", appProcess.processName);

    // kill app
    activityManager.killBackgroundProcesses(appProcess.processName);
}

This code works, but only when application in background. User can launch application, do something, and only after application will be in background, it will be killed.

How can I kill process, when it in foreground mode, just after launching?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:53:50+00:00Added an answer on June 12, 2026 at 10:53 am

    How can I kill process, when it in foreground mode, just after launching?

    Fortunately, you can’t, except perhaps on a rooted device when running as superuser.

    this is task for our corporate managers with Android tablets

    You are welcome to create your own ROM mod that eliminates the apps you do not want and install that ROM mod on the tablets in question.

    Or, fire the “corporate managers” who abuse their tablets.

    Or, fire the “corporate managers” who do not abuse their tablets, since I can teach a child how to get past your app, and any “corporate manager” stupid enough to not get past your app should not be in a management position.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been searching the net but couldn't find a solution for this. I need
I need to find a flexible solution for access control in PHP. In the
I already googled around to find a solution for my need, with no success.
i have a big solution containing that much projects..i need to find a specific
Simple question: I need a solution so that I can find, lets say names,
I need to find all the occurences of a file Test.TXT in c:\ or
I need to find a good backup solution for the site I have hosted
I'm struggling to find a good solution to this problem. In a view controller's
I need to find a solution to allow a subclass to get its proper
I have quite an interesting task at work - I need to find out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.