In the search for a solution for a long running Service (Uploading files to our Server)
i found this Github project https://github.com/gotev/android-upload-service
Inside the code i found some shell-Scripts which uses ADB to Configure the Device.
and
Will they do help in case of Android is killing my app when in Background?
i found this Github project https://github.com/gotev/android-upload-service
Inside the code i found some shell-Scripts which uses ADB to Configure the Device.
#!/bin/bash
adb shell dumpsys deviceidle disable
and
#!/bin/bash
PACKAGE="the app packagename"
adb shell am set-inactive "$PACKAGE" false
adb shell am get-inactive "$PACKAGE
Will they do help in case of Android is killing my app when in Background?