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 7587557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:42:11+00:00 2026-05-30T19:42:11+00:00

I have a problem in our thesis, its all about the BATTERY DOCTOR SAVER

  • 0

I have a problem in our thesis, its all about the BATTERY DOCTOR SAVER what my problem is, the .api list, what i want is to get only the application that is running not the internal system because in my thesis it also show the internal system. Is there a way how to remove that internal system in our task killer? so far this is my code for getting the running application :

    public void loadRunningProcesses() {

            ActivityManager activityManager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);

            List<RunningAppProcessInfo> appinfolist = activityManager
                    .getRunningAppProcesses();

            Log.d(TAG, "AppInfoList Size: " + appinfolist.size());

            for (ActivityManager.RunningAppProcessInfo runningAppProcessInfo : appinfolist) {
                TaskObject runningtask = new TaskObject();
                runningtask.setPid(runningAppProcessInfo.pid);
                runningtask.setProcessName(runningAppProcessInfo.processName);
                adapter.addTask(runningtask);
runningtask.setProcessName(runningAppProcessInfo.processName.substring(11));
            runningtask.setProcessName(runningAppProcessInfo.processName);

            }
        }

        class TaskObject {
            int pid;
            String processName;
            private boolean toKill;

            public int getPid() {
                return pid;
            }

            public void setPid(int pid) {
                this.pid = pid;
            }

            public String getProcessName() {
                return processName;
            }

            public void setProcessName(String processName) {
                this.processName = processName;
            }

            public boolean isToKill() {
                return toKill;
            }

            public void setToKill(boolean toKill) {
                this.toKill = toKill;
            }

        } 
  • 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-05-30T19:42:12+00:00Added an answer on May 30, 2026 at 7:42 pm

    From Polo Ravales:


    I already found a solution for this problem. I only use a substring and also make the first letter an uppercase for formality, look at my code :

    for (ActivityManager.RunningAppProcessInfo runningAppProcessInfo : appinfolist) {
            TaskObject runningtask = new TaskObject();
            String ringgo = new String();
    
            ringgo = runningAppProcessInfo.processName.toLowerCase().trim();
            if (!ringgo.equals("system")){
                if (ringgo.length()>12){
                runningtask.setPid(runningAppProcessInfo.pid);
                runningtask.setProcessName(ringgo.substring(12).substring(0,1).toUpperCase()+ringgo.substring(13));
                adapter.addTask(runningtask);}
                else{
                    runningtask.setPid(runningAppProcessInfo.pid);
                    runningtask.setProcessName(ringgo.substring(0,1).toUpperCase()+ringgo.substring(1));
                    adapter.addTask(runningtask);
                }
            }
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get a handle on whether we have a problem in our
I have the following problem: Our system has products that when released only are
I have the following problem: In our application we have a list of reports
I have a serious problem with our VS2010 with SP1. It is all the
I am not familiar with PowerBuilder at all. We have a problem in our
We have problem with our Qt based production server for our business application. When
I have a problem in our BTS production environment which we cannot reproduce in
We have a problem in our swing based application since we've upgraded our java
So here is our problem: We have a small team of developers with their
We have a little annoying problem with our delphi 2007 IDE, from time to

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.