4.6u2 Prerelease

244 views
Skip to first unread message

Pent

unread,
Dec 29, 2014, 9:58:58 AM12/29/14
to tas...@googlegroups.com
http://tasker.dinglisch.net/prerelease/

I'm releasing this version for testing primarly for testing of cell near with the new API when the display is off, and problems with Perform Task when the device is busy.

Pent

        <LI>bugfix: cell tower detection when off: attempted improvement when using new cell API
        <LI>bugfix: removed spurious Java warning when evaluating certain conditions
        <LI>bugfix: action Perform Task: improved mechanism for submitting new task in queue
        <LI>bugfix: timer widget: typed values in number pickers were being ignored
        <LI>bugfix: action Tasker / Disable was flashing an error and stopping task (after disabling)
        <LI>bugfix: action Java Function: catch attempts to run a function on a null object
        <LI>bugfix: task testing: stopping a tested task in middle of Wait exiting, then returning to task edit, task was still showing
        <LI>bugfix: action Java Object: wasn't showing object selection icon
        <LI>bugfix: action Java Object: had no help text
        <LI>bugfix: action Java Function: various problems with inner classes
        <LI>bugfix: action Java Function: storing return values in things that were partially (%) variables
        <LI>bugfix: scene element Text: links in HTML format weren't clickable

Pent

unread,
Dec 29, 2014, 10:03:02 AM12/29/14
to tas...@googlegroups.com
p.s. take the 'm' release if you bought from Play Store, otherwise the other one.

Pent

David Wang

unread,
Dec 30, 2014, 12:44:37 AM12/30/14
to tas...@googlegroups.com
        <LI>bugfix: action Java Object: wasn't showing object selection icon
 OK.

        <LI>bugfix: action Java Object: had no help text
 Still no help text.

        <LI>bugfix: action Java Function: various problems with inner classes
 Things get worse, mybe. Some function works well on 4.6u1 while report error on 4.6u2-prerelease. As follows:

JavaCode~ReflectionTest (16)
A1: Java Function [ Return:math Class Or Object:Class Function:forName
{Class} (String) Param:java.lang.Math Param: Param: Param: Param: ] 

A2: Java Function [ Return:field Class Or Object:math Function:getField
{java.lang.reflect.Field} (String) Param:PI Param: Param: Param: Param: ] 
A3: Java Function [ Return:%result Class Or Object:field Function:get
{Object} (Object) Param:math Param: Param: Param: Param: ] 
A4: Flash [ Text:%result Long:On ] 

---"A1-A4" works very well on 4.6u1. Report "A1" error on 4.6u2-prerelease. ---


xpath_test (14)
A1: Variable Set [ Name:%xtext To:<span class="goog_qs-tidbit goog_qs-tidbit-0"><?xml</span> version="1.0" encoding="UTF-8"?> 
<foo>

<en>
<city name="Paderborn"> <item>immigration office</item>
<item>Youth Office</item> <item>Sports Department</item> </city>
</en>

<de>
<city name="Paderborn"> <item>Auslnderamt</item>
<item>Jugendamt</item>
<item>Sportamt</item>
</city>
</de>

</foo> Do Maths:Off Append:Off ] 
A2: Variable Set [ Name:%xexp To://de/city[@name='Paderborn']/item/text() Do Maths:Off Append:Off ] 
A3: Java Function [ Return:source Class Or Object:InputSource Function:new
{InputSource} (String) Param:%xtext Param: Param: Param: Param: ] 
A4: Java Function [ Return:xfactory Class Or Object:XPathFactory Function:newInstance
{XPathFactory} () Param: Param: Param: Param: Param: ] 

A5: Java Function [ Return:xpath Class Or Object:xfactory Function:newXPath
{XPath} () Param: Param: Param: Param: Param: ] 
A6: Java Function [ Return:qname Class Or Object:Class Function:forName
{Class} (String) Param:javax.xml.xpath.XPathConstants Param: Param: Param: Param: ] 
A7: Java Function [ Return:field Class Or Object:qname Function:getField
{java.lang.reflect.Field} (String) Param:NODESET Param: Param: Param: Param: ] 
A8: Java Function [ Return:(QName)nodeset Class Or Object:field Function:get
{Object} (Object) Param:qname Param: Param: Param: Param: ] 
A9: Java Function [ Return:(NodeList)nodes Class Or Object:xpath Function:evaluate
{Object} (String, InputSource, QName) Param:%xexp Param:source Param:nodeset Param: Param: ] 
A10: Java Function [ Return:%result Class Or Object:nodes Function:getLength
{int} () Param: Param: Param: Param: Param: ] 
A11: Flash [ Text:%result %err Long:On ] 

---"A1-A8" works very well on 4.6u1("A9" error, doesn't know why?). Report "A4" error on 4.6u2-prerelease. ---


Pent

unread,
Dec 30, 2014, 3:44:36 AM12/30/14
to tas...@googlegroups.com

        <LI>bugfix: action Java Object: had no help text
 Still no help text.

It's there for the final release, just inaccessible for the prerelease version.

        <LI>bugfix: action Java Function: various problems with inner classes
 Things get worse, mybe. Some function works well on 4.6u1 while report error on 4.6u2-prerelease. As follows:
 

JavaCode~ReflectionTest (16)

Fixed that one, thanks.
 
---"A1-A4" works very well on 4.6u1. Report "A1" error on 4.6u2-prerelease. ---


xpath_test (14)

Could you post the XML to save me 1/2 hour typing ?

Thanks,

Pent

David Wang

unread,
Dec 30, 2014, 4:20:29 AM12/30/14
to tas...@googlegroups.com
---"A1-A4" works very well on 4.6u1. Report "A1" error on 4.6u2-prerelease. ---


xpath_test (14)

Could you post the XML to save me 1/2 hour typing ?

xpath_test.tsk(1).xml

Pent

unread,
Dec 30, 2014, 4:56:27 AM12/30/14
to tas...@googlegroups.com

 The XML file of "xpath_test" task attached.

Thanks.

The A4 problem is the same as on the first task, and is fixed.

I've improved the logging to reveal the A9 problem:

W/Tasker  (15125): 10.54.15#E: warning: Java Function: java.lang.reflect.InvocationTargetException
D/Tasker  (15125): 10.54.15#: Caused by: javax.xml.xpath.XPathExpressionException: java.net.MalformedURLException: Protocol not found: <span class="goog_qs-tidbit goog_qs-tidbit-0"><?xml</span> version="1.0" encoding="UTF-8"?>
D/Tasker  (15125): <foo>
D/Tasker  (15125):
D/Tasker  (15125): <en>
D/Tasker  (15125): <city name="Paderborn"> <item>immigration office</item>
D/Tasker  (15125): <item>Youth Office</item> <item>Sports Department</item> </city>
D/Tasker  (15125): </en>
D/Tasker  (15125):
D/Tasker  (15125): <de>
D/Tasker  (15125): <city name="Paderborn"> <item>Auslnderamt</item>
D/Tasker  (15125): <item>Jugendamt</item>
D/Tasker  (15125): <item>Sportamt</item>
D/Tasker  (15125): </city>
D/Tasker  (15125): </de>
D/Tasker  (15125):
D/Tasker  (15125): </foo>
D/Tasker  (15125): 10.54.15#: Caused by: java.net.MalformedURLException: Protocol not found: <span class="goog_qs-tidbit goog_qs-tidbit-0"><?xml</span> version="1.0" encoding="UTF-8"?>
D/Tasker  (15125): <foo>
D/Tasker  (15125):
D/Tasker  (15125): <en>
D/Tasker  (15125): <city name="Paderborn"> <item>immigration office</item>
D/Tasker  (15125): <item>Youth Office</item> <item>Sports Department</item> </city>
D/Tasker  (15125): </en>
D/Tasker  (15125):
D/Tasker  (15125): <de>
D/Tasker  (15125): <city name="Paderborn"> <item>Auslnderamt</item>
D/Tasker  (15125): <item>Jugendamt</item>
D/Tasker  (15125): <item>Sportamt</item>
D/Tasker  (15125): </city>
D/Tasker  (15125): </de>
D/Tasker  (15125):
D/Tasker  (15125): </foo>
D/Tasker  (15125): 10.54.15#: java.net.URL.<init>(URL.java:176)
D/Tasker  (15125): 10.54.15#: java.net.URL.<init>(URL.java:125)
D/Tasker  (15125): 10.54.15#: org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:115)
D/Tasker  (15125): 10.54.15#: org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:474)
D/Tasker  (15125): 10.54.15#: java.lang.reflect.Method.invoke(Native Method)
D/Tasker  (15125): 10.54.15#: java.lang.reflect.Method.invoke(Method.java:372)

I don't know anything about Xpath, so I'll leave that to you to work on :-)

Pent
Message has been deleted

David Wang

unread,
Mar 22, 2015, 9:30:08 PM3/22/15
to tas...@googlegroups.com
The demo of XPath using is OK now. It's not an issue in Tasker. I made the wrong parameters type for "InputSource".

The demo task attached. 

Reference:
JavaCode_XPathTest.tsk.xml
Reply all
Reply to author
Forward
0 new messages