Want to test the Java code in Tasker and was trying to execute the sample code in the Tasker website itself
1 Variable Set, %service, wifi
2 Java Function, wiman = CONTEXT.getSystemService( %service )
3 Java Function, %enabled = wiman.isWifiEnabled()
Step 1 & 2 is not a problem ,but on step 3 I don’t get the function isWifiEnabled for wiman ,but
the default classes like clone, equals, finalize...
Any pointers?
Thankx in advance
2 Java Function, wiman = CONTEXT.getSystemService( %service )
It would be helpful for you to provide more info.
You can do this by long pressing on the profile/task then go to Menu/Export/Description to clipboard - and then paste the info here.
You may need to disable Beginner Mode before you can do that. Go to Menu/Preferences/UI
Thank again for patiently guiding me on this.
Anycase your typecasting statement was instrumental(WifiManager) and not sure how it got missed in the example or was it working for other with out this typecasting .?