Checking if APP runnung and stopping running APPS

Lupus52

Member
Hello,

I am using MD since many years to do some actions depending on different locations (Home, Office, Friend...) and/or conditions (WLAN/GPS-Position,Car/Bike....)

All worked very fine until I changed to Android 10 because of new smartphone. Google locked some special actions in "10" I am needing.

Main problems:

1: How can I check now if an app is running in the background. The old function does not work any longer. These special apps (like GPS-Tracker) should not be started twice. Therefore I checked in the startmacro the condition if "App running"

2: How can I stop an App (even like GPS-Logger). I don't need to know if really running. Simple "Stop" when invoked the macro.

I googled a lot. But my English is not the best and I did not understand all what I found.

Please help with some simple explanation for not "programmers"
 

FrameXX

Well-known member
Sorry, but the running in background constraint is really unreachable in newer Android versions. Apps just can't obtain this information anymore (I know it's stupid and I think it too). You would need root and even if you had root MacroDroid doesn't support root solution for this constraint.
 

Lupus52

Member
Sorry, but the running in background constraint is really unreachable in newer Android versions. Apps just can't obtain this information anymore (I know it's stupid and I think it too). You would need root and even if you had root MacroDroid doesn't support root solution for this constraint.
Thank you - MD lost the best functions with this Google-Stupidity for me
 

Dimlos

Well-known member
We have created a test macro to check chrome stop and start by adb command, if you would like to try it.

You need to install ADB Shell [Tasker Plugin].

First, you need to connect your Android device to your PC via USB and set the ADB daemon to TCP/IP connection mode with the adb command.

adb tcpip 5555

This command is valid until the Android device is rebooted.
 

Attachments

  • Application_Stop.macro
    3.1 KB · Views: 9
  • Application_Running_Check.macro
    5.4 KB · Views: 5

Lupus52

Member
We have created a test macro to check chrome stop and start by adb command, if you would like to try it.

You need to install ADB Shell [Tasker Plugin].

First, you need to connect your Android device to your PC via USB and set the ADB daemon to TCP/IP connection mode with the adb command.

adb tcpip 5555

This command is valid until the Android device is rebooted.
Sorry ???? I am no programmer and understand nothing :-(
 

Dimlos

Well-known member
I am also Japanese, so it is difficult for me to explain in English in an understandable way.
Can someone please explain it to him in an easy-to-understand way?
 
Top