task custom settings doesn't work or works only occationally

159 views
Skip to first unread message

Kjetil Meling Hetta

unread,
Feb 14, 2019, 2:11:38 PM2/14/19
to Tasker
I've created a task to toggle my phone language using custom setting under the settings menu, switching languages between Norwegian and English. 

The task seems to change the value correctly, but nothing really happens on my phone. Same goes with caller ID settings. 

Tried to change another setting just to see if there are special requirements or if I'd set the parmameters incorrecly, so I made a task with the single purpose to toggle blue light filter on and off. The strange result is that this task works _occationally_ with an increased chance if I toggle the blue light filter in the quick menu manually before I run the task. Then after a while it doesn't work any more. But, when I restart my phone the blue litght filter turns on on restart. 

Any ideas on what I am missing? Do I need to enforce the settings somehow? XML of blue filter toggle and language changer tasks pasted below.

<TaskerData sr="" dvi="1" tv="5.7.0-beta.2">
<Task sr="task22">
<cdate>1550000496065</cdate>
<edate>1550169610929</edate>
<id>22</id>
<nme>Blåfilter</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>235</code>
<Int sr="arg0" val="2"/>
<Str sr="arg1" ve="3">blue_light_filter</Str>
<Str sr="arg2" ve="3">=:=toggle=:=</Str>
<Int sr="arg3" val="0"/>
<Str sr="arg4" ve="3"/>
</Action>
</Task>
</TaskerData>

<TaskerData sr="" dvi="1" tv="5.7.0-beta.2">
<Task sr="task13">
<cdate>1549967519625</cdate>
<edate>1550171007330</edate>
<id>13</id>
<nme>Skifte Språk</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>235</code>
<Int sr="arg0" val="2"/>
<Str sr="arg1" ve="3">system_locales</Str>
<Str sr="arg2" ve="3"/>
<Int sr="arg3" val="0"/>
<Str sr="arg4" ve="3">%telefonsprak</Str>
</Action>
<Action sr="act1" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Språk er %telefonsprak</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%telefonsprak</lhs>
<op>2</op>
<rhs>nb-NO</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act3" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%telefonsprak</Str>
<Str sr="arg1" ve="3">en-US,nb-NO</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>43</code>
</Action>
<Action sr="act5" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%telefonsprak</Str>
<Str sr="arg1" ve="3">nb-NO</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>38</code>
</Action>
<Action sr="act7" ve="7">
<code>235</code>
<Int sr="arg0" val="2"/>
<Str sr="arg1" ve="3">system_locales</Str>
<Str sr="arg2" ve="3">%telefonsprak</Str>
<Int sr="arg3" val="0"/>
<Str sr="arg4" ve="3"/>
</Action>
<Action sr="act8" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Språk er skiftet til %telefonsprak</Str>
<Int sr="arg1" val="0"/>
</Action>
<Img sr="icn" ve="2">
<nme>hd_location_web_site</nme>
</Img>
</Task>
</TaskerData>

João Dias

unread,
Feb 15, 2019, 5:02:15 AM2/15/19
to tas...@googlegroups.com
Unfortunately that will happen with that setting... I still haven't found what makes it work exactly, but I know that if you open Display Settings prior to using it, it works more often, but still not always :/ It seems like a quirk in Samsung devices. That is a Samsung you're using, right?

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Kjetil Meling Hetta

unread,
Feb 15, 2019, 5:13:58 AM2/15/19
to Tasker
Yes, that is correct. Samsung note 8. 

So there is not really hope in improvement by running the procedure to grant permissions? The blue light filter obviously has the permission it needs since it works  sometimes, but the other procedures seem to run without anything actually happening ever. The toast says the setting is changed, and when I run the task again it reads the values to have changed - even though nothing acutally happens on the phone. Should I expect an error if permissions were needed?

João Dias

unread,
Feb 15, 2019, 5:36:19 AM2/15/19
to tas...@googlegroups.com
Nope. It's just like that sometimes unfortunately. Some settings can be changed in the background but the OS will not actually pick up on those changes. That's just how the OS works for those settings and there's nothing we can do about it. The workaround would be to change the setting with AutoInput by simulating screen touches...


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

Reply all
Reply to author
Forward
0 new messages