Java In 4.6

411 views
Skip to first unread message

Pent

unread,
Oct 13, 2014, 2:41:02 PM10/13/14
to tas...@googlegroups.com
That's all I'm going to say, since this is actually a teaser thread.

Pent

Sean Williams

unread,
Oct 13, 2014, 5:28:47 PM10/13/14
to tas...@googlegroups.com
B-)

Wes Stacey

unread,
Oct 13, 2014, 5:43:54 PM10/13/14
to tas...@googlegroups.com
that's quite a teaser.

Matt R

unread,
Oct 13, 2014, 8:17:12 PM10/13/14
to tas...@googlegroups.com
!

Dave

unread,
Oct 13, 2014, 8:20:45 PM10/13/14
to tas...@googlegroups.com
I'm new to tasker, whats the significance of this? 

Matt R

unread,
Oct 13, 2014, 8:25:03 PM10/13/14
to tas...@googlegroups.com
If you're new, don't worry about it.  I envision this being an advanced feature.

Matt
Message has been deleted

Pent

unread,
Oct 14, 2014, 4:28:58 AM10/14/14
to tas...@googlegroups.com
Variable Set, %service, wifi
JavaFunc, wiman = context.getSystemService( %service );
JavaFunc, enabled = wiman.isEnabled();
Flash, Enabled: %enabled
JavaFunc, wiman.setWifiEnabled( true ), If %enabled eq false
Flash, Smokin'!

Pent

joaomgcd

unread,
Oct 14, 2014, 5:06:17 AM10/14/14
to tas...@googlegroups.com
:O

Dmitry Kadykov

unread,
Oct 16, 2014, 7:56:27 AM10/16/14
to tas...@googlegroups.com
That looks really cool!

вторник, 14 октября 2014 г., 12:28:58 UTC+4 пользователь Pent написал:

Wietse van Buitenen

unread,
Oct 16, 2014, 2:03:04 PM10/16/14
to tas...@googlegroups.com
I was hoping the new version would grind my coffee beans in the morning but I'll settle with this :-)

Pent

unread,
Oct 16, 2014, 2:58:22 PM10/16/14
to tas...@googlegroups.com

I was hoping the new version would grind my coffee beans in the morning but I'll settle with this :-)

Now you just have to wait for Android to implement coffee bean grinding and you can use it
straight away.

Pent

Scott

unread,
Oct 16, 2014, 3:42:38 PM10/16/14
to tas...@googlegroups.com
You could probably hack something together with a WeMo switch or similar smart home device.  Mr. Coffee paternally has a coffee maker coming out that will be compatible with WeMo.  You won't even need 4.6 to use them, either.  :)

David Wang

unread,
Dec 23, 2014, 12:17:21 AM12/23/14
to tas...@googlegroups.com
I love this feature. Cheers!

I test the new feature, and have some problems/suggestions. Here it is:

1. How to use "public static final" object(mostly constants) of JAVA in Tasker? 
e.g. 
public static final int FLAG_ACTIVITY_CLEAR_TOP;
public static final QName XPathConstants.NODESET;
public static final double PI;
...
I can't find the object from "Java Function ->Function" in Tasker. 

A task for testing xpath in JAVA function of Tasker attached. I'm stucked with "XPathConstants.NODESET".



2. Currently, "Java Object" action in Tasker haven't provide a coffee cup button to browse created global Java objects. 


3. "JAVA function / JAVA object" are advanced actions in Tasker. It's very useful, but I couldn't find some more useful information Tasker "Run Log" revealed when debugging(especially error happened). 

Thanks in advance!
xpath_test.tsk.xml

Pent

unread,
Dec 23, 2014, 3:52:59 AM12/23/14
to tas...@googlegroups.com

1. How to use "public static final" object(mostly constants) of JAVA in Tasker? 

Used to be that in a parameter you could put e.g. Math.PI, don't know what happened
to that, will look. 

2. Currently, "Java Object" action in Tasker haven't provide a coffee cup button to browse created global Java objects.

Ooops!

3. "JAVA function / JAVA object" are advanced actions in Tasker. It's very useful, but I couldn't find some more useful information Tasker "Run Log" revealed when debugging(especially error happened). 

Yes, that's true, you need to be able to find errors in the system log ATM.

It's a general problem with Tasker however. I want to show errors associated with action failure when
testing a task in the task edit screen.

Pent

David Wang

unread,
Dec 23, 2014, 4:22:53 AM12/23/14
to tas...@googlegroups.com
1. How to use "public static final" object(mostly constants) of JAVA in Tasker? 

Used to be that in a parameter you could put e.g. Math.PI, don't know what happened
to that, will look. 
 I have try "XPathConstants.NODESET" directly for the attachment, down't work. Also tried "assign{Object}()" function, no lucky.


2. Currently, "Java Object" action in Tasker haven't provide a coffee cup button to browse created global Java objects.

Ooops!
And the help file of "Java Object" action is lost now. Maybe  some notes need to be supplemented.
 

David Wang

unread,
Dec 25, 2014, 8:56:04 PM12/25/14
to tas...@googlegroups.com
1. How to use "public static final" object(mostly constants) of JAVA in Tasker? 

Used to be that in a parameter you could put e.g. Math.PI, don't know what happened
to that, will look. 

Finally, I  get the value/object of Constants(e.g. Math.PI) using reflection of JAVA. Tested task file attached. Maybe someone will find it useful.

Unfortunately, my former XPath test task still shows error. Didn't know why.
JavaCode_ReflectionTest.tsk.xml
Reply all
Reply to author
Forward
0 new messages