How To Stop Apps Running In Background Android Programmatically

The best way to control your processes is to dig under the hood using monitoring tools built into Android. Exactly how this process screen will look, how to access it and how it will be called.

The new phones are a wonderful thing, but over time your new phone slows down and becomes slow. Switching from one application to another becomes a frustrating experience and your battery is not about overcoming one day. If this seems familiar to you, there are some things you can do to control your device and improve the situation, and an easier way to do this is to control applications that run in the background.

In some cases, before you begin, you  enable developer options to make clearly your process.

  1. In most versions of Android, this involves configuring> About Phone and then pressing Build Number approximately seven or more times. You will receive a notification informing you that the Developer options will be unlocked once you have finished and that you can stop playing.
  2. For many phones, the following should be a configuration called Processes, Process Statistics or Running Services. You can find this in Settings> Developer Options> Configuration Processes> Developer Options> Running Services. This option contains a list of execution processes that show the amount of RAM used by each one.
  3. Obviously, it is about preventing most applications that consume RAM from running in the background, but you must pay attention to what you are stopping before continuing. Stopping some applications may block your phone.
  4. You can also touch the configuration option in the Services / Processes menu to switch between running processes and cached processes.

Some phones, such as a Meizu M3 Max, with the willingness to allow you to access the developer’s options by pressing the compilation number and have their own specific method. The best thing to do in that case is to look up your phone’s model on Google and the words “unlock options for developers.”

In the case of Meizu, that meant entering ## 6961 ## in the dialer and then looking in the settings> Accessibility> Developer options> Process statistics..

I’m in! But I don’t know which apps to stop

GOOD. If you do not want your application / phone to be blocked, consider the precautions and use common sense. The application is marked as ‘Google Services’, or almost any application that starts with ‘Google’ should not be stopped manually.

On the other hand, check the list and see the messengers and music players. The truly crucial applications usually do not correspond to the arrest of all forms.

To stop an application manually through the process list, go to Settings> Developer options> Processes (or Services running) and click the Stop button.To force an application to be stopped or uninstalled manually through the application list, go to Settings> Applications> Application manager and select the application you want to modify. Do not delete any application that comes back when you select the Show system applications option.

Therefore, in the previous example, we did not use for Kik, the Facebook Page Manager or some other running services, so we stopped them without error. In some cases, the service may restart automatically.

If you touch the option More / Settings (depending on the model of your phone), you can also check the RAM used by the cached processes. The same rules from which applications are safe to stop apply to cached and running processes.

With applications that simply will not close, like Kik for us (if you delete it through the process tab, it just restarts), you can navigate to Settings> Applications> Application Manager to run Force Stop or simply uninstall it directly.

Now it’s time to take a closer look at what’s draining your battery

If you looked around you while doing the previous steps, you probably saw information about the battery of each application, and that’s great, but you discover the draining of your battery evaluating each application individually we call you all day.

Instead, you must navigate to Settings> Battery and see what options are available on your phone. Again, options can have names and functions. Then, it can be useful or not.

  • How to save battery life on Android

The same rules apply to stopping or uninstalling applications applied to stopping through the processes tab, that is, you want to be careful with what you start to press. Some phones divide the applications in the battery usage tab by system or not in the system, and others divide in a list of “hardware” and “software” applications.

In theory, once each new version of Android adds more intelligent battery functions, the amount you need to play manually should decrease.

In Android Marshmallow, the most significant improvement was Doze, which has been launched when it is in motion.

For Android Nougat and Doze 2.0, this feature works now when your phone is also in motion, as long as it is not in use.

Android Oreo imposes execution limits in the background to ensure that applications do not go crazy with background services or that they keep listening services open at all times.

  • The many superpowers of Android Oreo/Pie

Samsung (and others) offer patented options of battery and RAM increase in many cases. Other people worried about the weather.

Task killers and RAM optimizers: the great debate

With Android (as an operating system) and OEM hardware improving over time, some people will argue that the use of killer applications of tasks will do more harm than good in terms of processing and battery life.

As one of the problems you are trying to solve is that the applications that run in the background exhaust your resources, adding another that has the purpose of doing it explicitly (you need to monitor the services in use in your phone, therefore you should always run ) seems a bit counter-intuitive.

A task killer that repeatedly forces the shutdown of an application in the background over and over again will almost certainly drain the battery more as the ‘restart and kill’ process continues. It’s best that you do not install the task Killer in the first place and just let it run.

However, some people trust them and you get even granular control over your operating system if you are using a rooted device. Many “Battery Saver” task killers require root access to work. If this is a method you want to follow, then you should consider using Greenify as an automatic hibernation application that works for both rooted and Non-rooted devices.

Non-rooted devices will not get automatic hibernation of applications and some other features, but you can still add a widget to your home screen to hibernate them into a single sudden guick movement/Click. It also has some interesting options that extend Doze for Marshmallow devices that do not require root access.

Task killers, Cleaners and RAM Optimizer can you to improve battery life easily. Let us know in the comments below!

  • 3
    Shares

Leave a Reply