Tasker Help? - Captivate Themes and Apps

I have setup a Task to Turn on WiFi as needed when called for by an App. Since it takes a couple of seconds for WiFi to find and obtain an IP address is there a way to make my WiFi Task to delay a few seconds so IP can be obtained before the App that called for WiFi is started?
Thanks

RonH54 said:
I have setup a Task to Turn on WiFi as needed when called for by an App. Since it takes a couple of seconds for WiFi to find and obtain an IP address is there a way to make my WiFi Task to delay a few seconds so IP can be obtained before the App that called for WiFi is started?
Thanks
Click to expand...
Click to collapse
which app, if you don't mind me asking.

RonH54 said:
I have setup a Task to Turn on WiFi as needed when called for by an App. Since it takes a couple of seconds for WiFi to find and obtain an IP address is there a way to make my WiFi Task to delay a few seconds so IP can be obtained before the App that called for WiFi is started?
Thanks
Click to expand...
Click to collapse
Tasker actions are done sequentially. Use Tasker->wait to have the task wait a specified amount of time. In addition, you may want to use the goto action to loop until you have an ip address.

arabcamel said:
which app, if you don't mind me asking.
Click to expand...
Click to collapse
I have Tasker set to turn on WiFi for: Browser,ESPN,Twitter,Gmail and of course XDA Forums...

Guardian_Bob said:
Tasker actions are done sequentially. Use Tasker->wait to have the task wait a specified amount of time. In addition, you may want to use the goto action to loop until you have an ip address.
Click to expand...
Click to collapse
Thanks. Where is the best place to learn how to do these things you mentioned?

RonH54 said:
Thanks. Where is the best place to learn how to do these things you mentioned?
Click to expand...
Click to collapse
Tasker's Official Webpage: http://tasker.dinglisch.net/

Related

HELP needed with tasker.. turn 3g and 2g off on certain apps

Need help how to make a task with tasker so that when opening certain app let's say the browser for example.. network connection automatically changes to 3g when wifi is off and turn again to 2g when the browser is exited.
Thanks.
emmanuelcassar said:
Need help how to make a task with tasker so that when opening certain app let's say the browser for example.. network connection automatically changes to 3g when wifi is off and turn again to 2g when the browser is exited.
Thanks.
Click to expand...
Click to collapse
Toggle 2G / 3G has a Tasker plugin: http://forum.xda-developers.com/showthread.php?t=739530
tonyp said:
Toggle 2G / 3G has a Tasker plugin: http://forum.xda-developers.com/showthread.php?t=739530
Click to expand...
Click to collapse
but toggle 2g/3g doesn't change network type on application execution.. i wanted something which start 3g on an application startup
emmanuelcassar said:
but toggle 2g/3g doesn't change network type on application execution.. i wanted something which start 3g on an application startup
Click to expand...
Click to collapse
That's why I said it has a Tasker plugin?
Of course you need to couple it with a Tasker rule.
Back when I tested the Tasker Trial it couldn't change 2G/3G afaik and I had to use Toggle 2G/3G to get that possibility.
Maybe that's not true anymore and Tasker can change that alone nowadays.
If you want to get help with setting up that rule you need to ask someone else as I decided against purchasing Tasker.
But then this question might be better suited for the Tasker forum.
tonyp said:
That's why I said it has a Tasker plugin?
Of course you need to couple it with a Tasker rule.
Back when I tested the Tasker Trial it couldn't change 2G/3G afaik and I had to use Toggle 2G/3G to get that possibility.
Maybe that's not true anymore and Tasker can change that alone nowadays.
If you want to get help with setting up that rule you need to ask someone else as I decided against purchasing Tasker.
But then this question might be better suited for the Tasker forum.
Click to expand...
Click to collapse
yes you are right i dont know exactly how to make the tasker rule.
Sent from my Optimus 2X using xda app-developers app
deleted

Tasker (And AutoRemote)

Anyone sideload these 2 apps yet? Especially now that Autoremote allows direct communication via BlueTooth...
nikkobenson said:
Anyone sideload these 2 apps yet? Especially now that Autoremote allows direct communication via BlueTooth...
Click to expand...
Click to collapse
Way ahead of you, except tasker won't install. Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
I got Locale installed but it seems to crash when I try to add conditions.
Llama seem to work, it seems I can at least change volumes based on times of days, its a start. Not sure what profiles I would need with a watch but Llama might be the best bet right now
dipole said:
Way ahead of you, except tasker won't install. Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
I got Locale installed but it seems to crash when I try to add conditions.
Click to expand...
Click to collapse
Damn.
autoremote
nikkobenson said:
Damn.
Click to expand...
Click to collapse
Okay I am wondering how to connect other devices? I know wrong place to
ask but am asking anyway?
I have not had problems installing autoapps just can't get other devices to connect or see it on search of nearby devices?

OpenVPN 3.0.X - Connect and Disconnect with Tasker (Solution)

Hi All,
It would appear that the interface / code changed rather a lot in the most recent update and the previous intents are no longer working.
I have figured out how to fix this. Please follow the directions below.
Important Note: Your profile name is now prefixed with PC. E.g. My profile of test.co.uk/example [user] would now be PC test.co.uk/example [user]
So, here are the settings (don't include the curly brackets):
Connect
Action: net.openvpn.openvpn.CONNECT
Extra: net.openvpn.openvpn.AUTOSTART_PROFILE_NAME: PC {Your profile name}
Extra: net.openvpn.openvpn.AUTOCONNECT: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Disconnect
Action: net.openvpn.openvpn.DISCONNECT
Extra: net.openvpn.openvpn.STOP: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Edit: As of the current version (3.0.4), OpenVPN no longer remains in the foreground on disconnect.
Awesome... Thanks for the fix.
Sent from my Galaxy Note 8 using XDA Labs
Thanks
Yes - It is very annoying that OpenVPN remains on the foreground on Disconnect.
Can Tasker's Kill App be used for this purpose?
jvillasante said:
Yes - It is very annoying that OpenVPN remains on the foreground on Disconnect.
Can Tasker's Kill App be used for this purpose?
Click to expand...
Click to collapse
I tried this but it didn't seem to do anything.
mmotti said:
Hi All,
It would appear that the interface / code changed rather a lot in the most recent update and the previous intents are no longer working.
I have figured out how to fix this. Please follow the directions below.
Important Note: Your profile name is now prefixed with PC. E.g. My profile of test.co.uk/example [user] would now be PC test.co.uk/example [user]
So, here are the settings (don't include the curly brackets):
Connect
Action: net.openvpn.openvpn.CONNECT
Extra: net.openvpn.openvpn.AUTOSTART_PROFILE_NAME: PC {Your profile name}
Extra: net.openvpn.openvpn.AUTOCONNECT: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Disconnect
Action: net.openvpn.openvpn.DISCONNECT
Extra: net.openvpn.openvpn.STOP: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Annoyingly they have made it so OpenVPN remains in the foreground on disconnect. I have yet to look into this.
Click to expand...
Click to collapse
Thank you very much!!!
mmotti said:
Annoyingly they have made it so OpenVPN remains in the foreground on disconnect. I have yet to look into this.
Click to expand...
Click to collapse
:highfive: Thank you for finding this. I had to downgrade 1.1.27 to get my task to work, but now I've got the new UI and working tasks, so THANK YOU.
As a lazy workaround to the app remaining in the foreground I've added a 1-second wait then 2 AutoInput Back actions:
"Intent to end OpenVPN connection"
2. Wait = 1 second
3. AutoInput Global Action = Back
4. AutoInput Global Action = Back
mondohow said:
:highfive: Thank you for finding this. I had to downgrade 1.1.27 to get my task to work, but now I've got the new UI and working tasks, so THANK YOU.
As a lazy workaround to the app remaining in the foreground I've added a 1-second wait then 2 AutoInput Back actions:
"Intent to end OpenVPN connection"
2. Wait = 1 second
3. AutoInput Global Action = Back
4. AutoInput Global Action = Back
Click to expand...
Click to collapse
Could you explain in tasker how to do it?
Thanks
xhenon said:
Could you explain in tasker how to do it?
Thanks
Click to expand...
Click to collapse
You will need the AutoInput Tasker plugin for this to work. You can get it from here:
https://play.google.com/store/apps/details?id=com.joaomgcd.autoinput
1. Follow the above steps for the Disconnect task
2. Hit the + to add a new action
In the list that pops up, select Task -> Wait and change it to 1 second
3. Hit the + button to add a new action
In the list select Plugin -> AutoInput -> Global Action
Hit the pencil icon next to Configuration
Hit Action -> Select Back from the list
Hit the check mark on the top right, then hit the back button to return to the Actions list
4. Repeat #3
Your Actions list should look like the attached image.
I had to add the AutoInput 'Back' action twice since OpenVpn Connect backs out of the VPN Profile screen into the main app screen. The second Back action takes you to back into your last app/activity.
It's a lazy workaround so I'm sure someone will come up with something better in time.
Go Home tasker task
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
jvillasante said:
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
Click to expand...
Click to collapse
Excellent - Thanks.
Thank you for this. BIG help.
I was wondering if anybody out there has a profile for disconnecting from OpenVPN but only after wifi has been in disconnected state for 30 seconds?
Thanks.
jvillasante said:
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
Click to expand...
Click to collapse
Thanks to the OP and thanks to you,excellent info
Thanks for sharing, i was quite annoyed by that update.
Made my day
Hi.
Thank you for this.
Maybe i am just to noobish for this, but how do you make the command "Actions"?
Is that Secure settings?
betahelix said:
Hi.
Thank you for this.
Maybe i am just to noobish for this, but how do you make the command "Actions"?
Is that Secure settings?
Click to expand...
Click to collapse
I originally followed a guide here: https://collinmbarrett.com/android-tasker-openvpn/
That should tell you where to find the necessary actions.
Use the updated values in OP instead of those listed on the site, though.
mmotti said:
I originally followed a guide here: https://collinmbarrett.com/android-tasker-openvpn/
That should tell you where to find the necessary actions.
Use the updated values in OP instead of those listed on the site, though.
Click to expand...
Click to collapse
First of all, thank you for this post.
Currently I'm using "go home" to "close" open vpn after disconnect.
Latest change log says "* added minimize app on disconnect shortcut feature"
Do you think we can use it in Tasker somehow to natively minimize the app after disconnect?
Sent from my Pixel 2 using Tapatalk
rodak said:
First of all, thank you for this post.
Currently I'm using "go home" to "close" open vpn after disconnect.
Latest change log says "* added minimize app on disconnect shortcut feature"
Do you think we can use it in Tasker somehow to natively minimize the app after disconnect?
Click to expand...
Click to collapse
I was using: wait 1 second and go home.
After updating, it actually closes itself automatically now. It happens very quickly - I don't even see the OpenVPN UI.
mmotti said:
I was using: wait 1 second and go home.
After updating, it actually closes itself automatically now. It happens very quickly - I don't even see the OpenVPN UI.
Click to expand...
Click to collapse
Thanks, will try it out.
Edit: It worked perfectly, maybe time to update the original post?
Sent from my Pixel 2 using Tapatalk
rodak said:
Thanks, will try it out.
Edit: It worked perfectly, maybe time to update the original post?
Click to expand...
Click to collapse
I popped an edit in there
mmotti said:
I popped an edit in there
Click to expand...
Click to collapse
Hello,
I am using Automate its pretty much the same in terms of use like tasker.
But it's free and you Programm flows. But when I try this without using the back back option the disconnect interface didn't close it self.
Did you comment something new in the action blocks?
Gesendet von meinem G8341 mit Tapatalk

activating lastpass accessibility toggle

Is it possible to use tasker to switch on lastpass accessibility toggle? My OnePlus 3t (not rooted, OOS 9.0.4) deactivates it almost on a daily basis. I have switched off battery optimisation for lastpass but the phone turns the toggle off.
Use auto input
Ta. I'll check that out
Hi there. Maybe you can try using the "Custom Setting" action for that. Try using the Magnifying glass in the action with the option to automatically find the setting and see if Tasker can find it. Hope this helps!
joaomgcd said:
Hi there. Maybe you can try using the "Custom Setting" action for that. Try using the Magnifying glass in the action with the option to automatically find the setting and see if Tasker can find it. Hope this helps!
Click to expand...
Click to collapse
I found that by googling but I can't figure out how to make it toggle the switch. The tasker forum talks about reading the accessibility setting but gives no more details than 'brilliant that works'
Eggstones said:
I found that by googling but I can't figure out how to make it toggle the switch. The tasker forum talks about reading the accessibility setting but gives no more details than 'brilliant that works'
Click to expand...
Click to collapse
The easy way is to use the Secure Settings action in AutoTools. That has a direct option for accessibility services. I plan on adding that option to Tasker directly at a later date.
With the Custom Setting action what you should do is read the value, remove or add the needed service from the list, the write the setting.
Ta I'll test that
joaomgcd said:
The easy way is to use the Secure Settings action in AutoTools. That has a direct option for accessibility services. I plan on adding that option to Tasker directly at a later date.
With the Custom Setting action what you should do is read the value, remove or add the needed service from the list, the write the setting.
Click to expand...
Click to collapse
I must be missing something here. Autoapps seems to only control a subscription service. Can't see anything called secure settings when I download it.
Eggstones said:
I must be missing something here. Autoapps seems to only control a subscription service. Can't see anything called secure settings when I download it.
Click to expand...
Click to collapse
I mentioned AutoTools, not AutoApps
joaomgcd said:
I mentioned AutoTools, not AutoApps
Click to expand...
Click to collapse
Mea culpa mea maxima culpa.
I'll try again.
I seem to have manage to get the change state to react to it switching state but need to do some adb to see if it works.
Deleted
joaomgcd said:
The easy way is to use the Secure Settings action in AutoTools. That has a direct option for accessibility services. I plan on adding that option to Tasker directly at a later date.
With the Custom Setting action what you should do is read the value, remove or add the needed service from the list, the write the setting.
Click to expand...
Click to collapse
I can now get the profile to switch on but I cannot figure out how to get the secure setting to change the toggle.
Both profile and task shows up as green but nothing seems to happen.
Eggstones said:
Mea culpa mea maxima culpa.
I'll try again.
I seem to have manage to get the change state to react to it switching state but need to do some adb to see if it works.
Click to expand...
Click to collapse
No problem at all Let me know how it goes!
joaomgcd said:
No problem at all Let me know how it goes!
Click to expand...
Click to collapse
Not well at all. The profile activates but nothing is actually changed.
Eggstones said:
Mea culpa mea maxima culpa.
I'll try again.
I seem to have manage to get the change state to react to it switching state but need to do some adb to see if it works.
Click to expand...
Click to collapse
Eggstones said:
Not well at all. The profile activates but nothing is actually changed.
Click to expand...
Click to collapse
Does it work if you run the task manually?
joaomgcd said:
Does it work if you run the task manually?
Click to expand...
Click to collapse
No. If I click on the task I don't get an error or the green dot. Instead I get a grey play arrow Infront of the task.
In the profile window both the profile and task shows up as green.
Eggstones said:
No. If I click on the task I don't get an error or the green dot. Instead I get a grey play arrow Infront of the task.
In the profile window both the profile and task shows up as green.
Click to expand...
Click to collapse
That means that Tasker doesn't seem to be able to communicate with AutoTools. Do other AutoTools actions work?
To make sure Tasker and the AutoApps run in the foreground please check here: https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00
joaomgcd said:
That means that Tasker doesn't seem to be able to communicate with AutoTools. Do other AutoTools actions work?
To make sure Tasker and the AutoApps run in the foreground please check here: https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00
Click to expand...
Click to collapse
Sorry to be a pain but I cannot find the run in foreground setting on my OnePlus 3t.
Eggstones said:
Sorry to be a pain but I cannot find the run in foreground setting on my OnePlus 3t.
Click to expand...
Click to collapse
Did you check here?
joaomgcd said:
Did you check here?
Click to expand...
Click to collapse
Yep. All those seeking are correctly set. It's the tasker foreground setting I cannot find. Tried googling it but the links I found doesn't match what I see in tasker.

Help with Samsung Smartview autoconnect to device

Hi,
i d like to create a task so it autoenables smartview and connects to a given device.
i couldnt find the trigger todo so, is it may not possible ?
The Trigger Bluetooth is clear, but i cant figure the way to use smartview with device as task ...
for an Tipp thanks ahead
Unfortunately, I haven't had a Samsung in years, but a post in the S7 Q/A forum suggests using an app called Miracast Shortcut.
ktmom said:
Unfortunately, I haven't had a Samsung in years, but a post in the S7 Q/A forum suggests using an app called Miracast Shortcut.
Click to expand...
Click to collapse
thanks for the tip, i gave it a try, this will only open the screen share page on the phone, there is no auto connect option in the app so it wont connect to the cast device actually.
was worth a try
alturismo said:
thanks for the tip, i gave it a try, this will only open the screen share page on the phone, there is no auto connect option in the app so it wont connect to the cast device actually.
was worth a try
Click to expand...
Click to collapse
Try using the net -> bluetooth connection action
ktmom said:
Try using the net -> bluetooth connection action
Click to expand...
Click to collapse
Hi, thanks, but thats exactly what im doing in profile, using the bluetooth connect to car to open the app, but the app doesnt auto connect to the cast device (and there is no option as far as i see in the app todo so), so the point in auto connect to the device cannot be provided like this in my usecase.
thanks for the tip with BT, that is my trigger already to start the action, but the action "auto connect to a cast device" ... is not given to me.
alturismo said:
Hi, thanks, but thats exactly what im doing in profile, using the bluetooth connect to car to open the app, but the app doesnt auto connect to the cast device (and there is no option as far as i see in the app todo so), so the point in auto connect to the device cannot be provided like this in my usecase.
thanks for the tip with BT, that is my trigger already to start the action, but the action "auto connect to a cast device" ... is not given to me.
Click to expand...
Click to collapse
There is a tasker plugin by the same developer called AutoCast. Maybe it will help you.
I don't do any of this, so obviously I don't have any personal experience to offer. You might try on the tasker Google groups forum.
ktmom said:
There is a tasker plugin by the same developer called AutoCast. Maybe it will help you.
I don't do any of this, so obviously I don't have any personal experience to offer. You might try on the tasker Google groups forum.
Click to expand...
Click to collapse
was a great idea, sadly this app (beta state) only supports google devices, no miracast device, but that function would have been the winner, thanks again
Probably a part of the problem is that Google removed miracast support from "stock" android awhile ago. That dates back to the nexus 6 days.
ktmom said:
Probably a part of the problem is that Google removed miracast support from "stock" android awhile ago. That dates back to the nexus 6 days.
Click to expand...
Click to collapse
contacted the developer of the autocast plugin and he confirmed, only works with google cast devices like i (sadly) expected.
thanks anyway for the hint.
That's always working to automate the tap(s) required. You could use Tasker to open the app, AutoInput UI query to determine when it's open, then an AutoInput action to enable the device connection.
probably yes, but thats now too much read and trial and error for now, thanks.

Categories

Resources