How to find the current network access state in Tasker? - Tasker Tips & Tricks

I am trying to toggle my mobile data. Don't know how to get the current state of network access. Plus, phone not rooted either. Any way to accomplish what I want,?

It's not clear what you're looking for. Do you want to know if you are connected to wifi in order to turn off mobile data (which doesn't work on all phones/ROMs)?
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

I simply want an alternative to toggling mobile data via the notifications drawer. The network access task has 4 states. I am only interested in "allow all" and "deny all".
In order to toggle I need to know what state it's initially in... that's all.

It sounds like you are working from a tasker tutorial. Could you either post the task or link to it.
You're talking about the network access ACTION used inside a task ?
Then you are turning access to the network on/off for apps rather than toggling the mobile data on/off?
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

I can't post links because of rep. Google "network access Tasker". You should get the Tasker guide page.
To simplify. Say I have set the network access to "deny all" via some task. In a different task, I want to read that setting. How do I do that?
Hope I have made clear atleast now...

The only link that comes up is Tasker's user manual page for network access. That action turns on/off network access to apps either some or all. It won't matter if you're on wifi or mobile data.
I think the only way you can know the state is to set a variable in the task when it toggles on, then, if that variable is set, toggle off. Part of that toggle-off process should be to clear the variable.
If what you are looking to do is toggle mobile data (without root), then AutoApps plug-ins for Tasker is a way to go. AutoTools has a secure plugin that *may* be able to just do a simple toggle for you. Else AutoInput can "script" the touch sequences to toggle the quick tile.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

ktmom said:
The only link that comes up is Tasker's user manual page for network access. That action turns on/off network access to apps either some or all. It won't matter if you're on wifi or mobile data.
I think the only way you can know the state is to set a variable in the task when it toggles on, then, if that variable is set, toggle off. Part of that toggle-off process should be to clear the variable.
If what you are looking to do is toggle mobile data (without root), then AutoApps plug-ins for Tasker is a way to go. AutoTools has a secure plugin that *may* be able to just do a simple toggle for you. Else AutoInput can "script" the touch sequences to toggle the quick tile.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Tried scripting with AutoInput. But I can't swipe backward from my notification drawer to get to the required place. AutoApps and AutoTools - I am just not clear as to what is the payment model these apps have at the moment. If you could demystify them it would be great.
Ps: the phone I use is Moto G4 Play.

deostroll said:
Tried scripting with AutoInput. But I can't swipe backward from my notification drawer to get to the required place. AutoApps and AutoTools - I am just not clear as to what is the payment model these apps have at the moment. If you could demystify them it would be great.
Ps: the phone I use is Moto G4 Play.
Click to expand...
Click to collapse
I must be having a senior moment I'm not sure what swiping backwards from the notification drawer means. Are you trying to get to the next page of quick tiles?
It's been awhile since I installed AutoTools. I seem to think that you install it for 30 days with everything unlocked, then pay for the plugin(s) you actually use.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Related

Shortcut on home screen to force close app

I dont know if tasker can do this but i searched snd couldnt find anything. Can I use tasker to make a shortcut to force close an app? I use AT&T EPPT for work but I want an easy way to get the notification away when not at work. And it's a simple PPT app so I don't think it would mind. Can tasker do it?
Killing an app has been unreliable. But give it a try.
Just create a task with an action of app -> kill app and configure it for the AT&T app.
Then add a tasker widget to the desktop which calls the task you created.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Toggle "wifi calling"

Hi,
I am wondering if there is any way to toggle wifi calling setting on certain conditions.
I can't find any thing like that in the tasker app.
I am using Samsung note 8 with oreo.
Thanks.
There used to be an app or two in the play store that were plug-ins for tasker to help with this. They seem to be gone though.
I'm not aware of an intent (maybe it would be carrier specific and not excluded via intents?).
So that kinda leaves auto input as the defacto solution.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Turn on Bluetooth when in motion.

Hello,
How can I have Tasker turn on Bluetooth whenever I'm in motion?
I have a connected vehicle and whenever I leaving work, home, shipping etc., I would like Tasker to turn Bluetooth on and when I'm not in motion for more than 10 minutes turn Bluetooth off.
Any assistance is appreciated.
Micheao
If you really v want this to be motion sensing, then I suggest the AutoLocation plug-in. It does required GPS to be on for most precision/accuracy. Additionally, your location will be constantly monitored so you're going to be draining the battery.
If this is too turn on Bluetooth to connect to the car radio and turn off when you've left the car, then I'd be using the Bluetooth near context.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
If you really v want this to be motion sensing, then I suggest the AutoLocation plug-in. It does required GPS to be on for most precision/accuracy. Additionally, your location will be constantly monitored so you're going to be draining the battery.
If this is too turn on Bluetooth to connect to the car radio and turn off when you've left the car, then I'd be using the Bluetooth near context.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Yes, I want it to be motion sensing using the GPS and battery is not a problem. Is it a limitation with Tasker that makes it impossible to do?
Regards
Tasker is a framework first. Plugins add features that not all users will want. This method of using plugins helps keep the core app under control from a maintenance and size point of view.
You can create a task that gets your location, then gets a second location, compare those results and determine if the device is moving. Read Tasker's online documentation: location without tears.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Thanks for the no help
So what have you tried since the last post 2 weeks ago? How about you post your profile and indicate what's not working.
To do that, make sure it's named - not a default name assigned by tasker. Then long press on the name to highlight the profile. Go to the 3-dot menu and select export -> Description to Clipboard.
Then you'll be able to paste it. Be aware, it easier to use pastebin then link to a post here. If you paste in a post here, the forum software will convert all semicolons with characters after, typically "on" and "off" to emoticons making it very hard to read.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

[HELP] Create a shortcut to app info's settings cog that was introduced in Nougat

Brief explanation of the function here: https://stackoverflow.com/questions...e-a-settings-button-in-androids-app-info-page
Need some developer knowledge involving the described intent. To infer what the shortcut needs.
The actual purpose I have is changing Spotify quality quickly without extra steps.
Infy_AsiX said:
Brief explanation of the function here: https://stackoverflow.com/questions...e-a-settings-button-in-androids-app-info-page
Need some developer knowledge involving the described intent. To infer what the shortcut needs.
The actual purpose I have is changing Spotify quality quickly without extra steps.
Click to expand...
Click to collapse
I think that linked page was pretty clear. Maybe you need to know how to add settings to your app; Google Developer Training 9.2: Adding Settings to an App.
However this is the Tasker forum and not app development.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
I think that linked page was pretty clear. Maybe you need to know how to add settings to your app; Google Developer Training 9.2: Adding Settings to an App.
However this is the Tasker forum and not app development.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
The Spotify app already has the settings cog in app info. I want to access that shortcut with Tasker directly. I'm requesting help with developer knowledge because I'm curious if the involved intent is accessible to Tasker.
Infy_AsiX said:
The Spotify app already has the settings cog in app info. I want to access that shortcut with Tasker directly. I'm requesting help with developer knowledge because I'm curious if the involved intent is accessible to Tasker.
Click to expand...
Click to collapse
The way to find the intents available in the Spotify app is to read through the manifest for the app. I'm sure that intent is in the Spotify manifest, it's the method to create the link.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Tasker in Application List

Hello everyone,
I'm very new and I was hoping I can get some assistance from you.
I want to have my screen timeout changed when Im running Tasker in foreground. Is there any way to do this?
Thank you,
From the Tasker FAQ;
Why isn't Tasker shown in the Application Context list ?
Because it's easy to get into trouble firing tasks in Tasker. For example, if a profile is setup with a Tasker Application Context and a task with Load App Calculator, it will not be possible to enter Tasker anymore.
Click to expand...
Click to collapse
When the accessibility service is enabled for Tasker, the %WIN variable won't detect Tasker either. Of course, disabling accessibility prevents Tasker from intercepting what app is running.
It *might* be possible to do what you want using the app factory and making a kid app.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Categories

Resources