1. Are you ready for the Galaxy S20? Here is everything we know so far!

Tasker battery drain.... due to exiting without using back button?

Discussion in 'Android Apps & Games' started by electricpete, Feb 7, 2016.

  1. electricpete

    electricpete Android Expert
    Thread Starter

    Usually Tasker is low on my battery list.

    Today with battery at 45%, I have 12% usage from screen and 7% usage from Tasker.
    Tasker stats show 32 minutes cpu total, 40 sec cpu background, and 7 hours of "keep awake"

    I launched a shortcut to Tasker to check what profiles were active. No profiles were active and no tasks running, but I noticed that the shortcut took me directly into a task, whereas normally (if I had hit back key to exit Tasker) it would not take me to a task (it would take me to a task list it profile list within a project).

    Putting these two observations together, I wonder if for some reason Tasker responds differently when I don't back out of a Task (maybe it stays in a state where it keeps the device awake).

    Just thought it was interesting. Interested in any comments. Otherwise I'll just keep an eye on it
     

    Attached Files:



    #1 electricpete, Feb 7, 2016
    Last edited: Feb 8, 2016
  2. electricpete

    electricpete Android Expert
    Thread Starter

    Sunday results - reported above. Battery drain suspected due to not exiting out of task editing.

    Monday results - Normal day. At the end of the day Tasker was not even visible on my list of apps (less than 1% usage).

    Tuesay results - this morning at around 8AM I decided to do an experiment in attempt to recreate Sunday's results. I opened a task in tasker. Then added an action. Then pressed home (rather than back) which left Tasker in some kind of edit mode. Now only two hours later Tasker is showing 1% battery used and 58 minutes of "keep awake" time.

    I should also mention that I'm running marshmallow, and tasker is one of the few apps that I've excluded from battery optimization.

    Conclusion: We definitely need to exit out of tasker properly to avoid battery drain (as well as making sure our changes are properly registered by tasker).

    The way I exit (which works fine) is to repeatedly press the back key. You can also select exit from the menu. The wrong way would be to press the home key or recents key from within task edit.
     
    #2 electricpete, Feb 9, 2016
    Last edited: Feb 9, 2016
    WarriusZero likes this.

Tasker

Tasker Forum

net.dinglisch.android.taskerm

⚙No repetitive tasks for you, let your Android device handle it!⚙
Total Automation, From Settings to SMS. Here are only some
of the things you could do with Tasker. Its real power is the flexibility to combine contexts and tasks however you wish: https://tasker.joaoapps.com/exampleuses.htmlAutomations
Make your phone a true smart
phone! Why remember to change the volume every day when you leave home when your phone can do it for you? Automate stuff based on the app you're in
, the time of day
, your location
, your Wi-Fi network
, Received SMS or Calls
, the currently playing song
and many other (130+) states and events! Check out how easy it is to create an automation: https://www.youtube.com/watch?v=s6EAbLW5WSkActions
350+ actions allow you to truly customize your phone like never before! Send SMS, create notifications, change almost any system setting like Wifi Tether, Dark Mode, Always On Display, change any volume, control Do Not Disturb, open apps, file manipulation, control music playback, get your location... you get the idea. If you can think of it, Tasker can probably do it for you! Note: root is NOT (I repeat NOT) required for majority of the functions.
However, a few of the actions (like the Airplane Mode action and the Mobile Data action on some devices) require root. Regarding those few actions that do require root, this is because of Android security policies that developers cannot work around. ☑ Other Triggers
Manually trigger your actions via launcher shortcuts, quick setting tiles, widgets, long-pressing volume buttons, media buttons (like the ones on your BT headsets or headphones), Bixby button, Navigation Bar, Notificaitons and more! ☑ Join - Remote Tasker
Adding Join (https://play.google.com/store/apps/details?id=com.joaomgcd.join) to the mix will even allow you to trigger tasks from another Android device or PC! ☑ Scenes
Design your own UI and use it to display any info you want or trigger any task! ☑ App Creation
Create your own standalone apps to share or sell with the Tasker App Factory (https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory)! ☑ Developer Friendly
A lot of 3rd party developers already allow you to perform actions in their apps and listen to their events/states through Tasker! Check out a list of plugins https://tasker.joaoapps.com/pluginlist.html. You can also call most of the Web APIs from Tasker with the powerful HTTP Auth and HTTP Request actions! Check out an example https://youtu.be/yAt2D1XmgUI. ☑ 7 day trial - one time payment to unlock
Get it here: https://tasker.joaoapps.com/download.htmlUseful Links
Starter Guides: https://tasker.joaoapps.com/guides.html Pre-made projects: https://forum.joaoapps.com/index.php?resources/ Official Support Forumhttps://groups.google.com/forum/#!forum/tasker Community full of people willing to help: https://www.reddit.com/r/tasker/ It's not possible to fix problems reported via Play Store Comments so please use the "Report Issue To Developer" option in the app > Menu to do so. Note
: Tasker uses the BIND_DEVICE_ADMIN permission in order to provide the System Lock functionality

READ MORE
February 15, 2020
Last Updated
4.4
Rating
1M+
Installs
Loading...

Share This Page

Loading...