How to use Tasker to auto-kill app when screen is off?

534 views
Skip to first unread message

Jakob

unread,
Dec 7, 2011, 9:55:47 AM12/7/11
to Tasker
I have full version of Tasker which I use to control brightness on
certain apps and which I've read does a million other things. I'm
pretty sure that there's also a way to auto-kill an app with Tasker so
the app switches off automatically when my screen is turned off but I
can't figure out how to do it. I know there are certain Task managers
that are supposed to be able to do this but I tried several and none
of them worked.
The program I'd like to close when screen is off is LGCamera app --
invaluable since I shoot A LOT of HD video (its fixed-focus mode is
awesome), but annoying because very often when I reawaken my phone,
the camera display is corrupted. See here for a video showing issue:
http://androidforums.com/android-applications/455693-lgcamera-app-screen-goes-corrupt-if-screensaver-comes.html
It's fixed if I close and restart the program but could be avoided if
the program would just close on its own when the screen goes off.

Any help would be greatly appreciated -- thanks in advance!!

Morten Haughom

unread,
Dec 27, 2011, 7:46:55 AM12/27/11
to Tasker
Try using the %SCREEN Variable with the Variable Event. Use the
Condition %SCREEN= "off", if true, then use Kill App.
Don't know if its going to work or not! Just a shot in the dark really

Morten

On Dec 7, 3:55 pm, Jakob <jakobjkr...@gmail.com> wrote:
> I have full version of Tasker which I use to control brightness on
> certain apps and which I've read does a million other things. I'm
> pretty sure that there's also a way to auto-kill an app with Tasker so
> the app switches off automatically when my screen is turned off but I
> can't figure out how to do it. I know there are certain Task managers
> that are supposed to be able to do this but I tried several and none
> of them worked.
> The program I'd like to close when screen is off is LGCamera app --
> invaluable since I shoot A LOT of HD video (its fixed-focus mode is
> awesome), but annoying because very often when I reawaken my phone,
> the camera display is corrupted. See here for a video showing issue:http://androidforums.com/android-applications/455693-lgcamera-app-scr...

V Oz

unread,
Dec 27, 2011, 8:26:32 AM12/27/11
to tas...@googlegroups.com
Why shot in the dark?
You can log everything, You can use tts to speak text while screen is off.
Use shell to find out what name the app really is (e.g. tasker = net.dinglisch.android.tasker). Then make ps | grep %APP_NAME to the log file or grep -q to run Say action.
I use Variable %SCREEN Set Event for wifi toggling. It works fine. killing apps is more complicated task.
Reply all
Reply to author
Forward
0 new messages