• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help mobile data on off with time

Iam newbie for tasker app, i want to configure mobile data to on at midnight about 2:00 am and off after 3:00 am.also when the mobile data is on the mobile screen is set to off.

Plz guide me step by step as i doesnt know to configure.


Thanks in advance
 
Last edited:
Welcome to Android Forums.

Is your device root-ed? What Android version are you using?

If you go into Tasker to create a task and choose Net a dialog appears.
Mobile is probably red.
Click on Mobile and you will probably se that it is not supported.

This was a security change made to the operating System to prevent an abusive app from manipulating your data connection.

... Thom
 
  • Like
Reactions: Daniel Fernandes
Upvote 0
Tasker is not for everyone. If you want to get involved I would be happy to help. There are a number of videos you can Google that will help you get started.

Have you created a task yet in Tasker and executed it? Something simple like flashing "Hello World".

The way to lean Tasker is to start out simple ... get that to work ... add to it ... get that to work ... add to it ...

The ability to toggle Mobile Data was removed as a capability in Android systems. It is not possible to do unless you are root-ed. he reason is that you could install an app from a bad person who would assume control of your data connection.

I don't know that the problem is that you are trying to solve.

I use a Droid Turbo 2 under 6.0.1 that is not root-ed. I cannot toggle Mobile Data. I have found no reason to. I do toggle WiFi.

If I am within reception area of one of my office networks WiFi is on in my phone and it automatically connects.
Since I visit customer sites if WiFi was on the phone would contently try to connect to their WiFi network(s).
When I am away form my office Tasker turns WiFi off and Mobile is then in use.

... Thom
 
Upvote 0
is there any way to toggle mobile data without rooting with tasker or any other app on specific time shedule.

Yes, there is a way, and it involves using Tasker and AutoInput (paid plugin for Tasker). Perhaps TouchTask (which I think is free) instad of AutoInput might also work. But it's not an easy task for a begginer.

Essentially, without having root access, there is no direct way. What the plugins will do, is to simulate touch events on your screen. I'm thinking the form: unlock device, screen on, draw quick settings, select mobile data, enable/disable, close quick settings, lock screen.

I'm sure if you search the internet, you'll find a solution to it. You should do that before committing into buying a plugin!

For most part though, I agree with Thom. Tell us what your exact problem is, as it sounds there may be a better solution.
 
  • Like
Reactions: Thom
Upvote 0
AutoInput has a 7-day trial, so here is the description and an XML file to get you started (remove the .txt extension before importing to Tasker.)

Remember to change the field value for your carrier/tile name.

Code:
Toggle Mobile Data (38)
    <Open quick settings.>
    A1: AutoInput Global Action [ Configuration:Action: Quick Settings Timeout (Seconds):20 ]
    <Allow for some time for quick settings to be drawn.>
    A2: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
    <Tap on the quick settings tile for mobile data. Change the value ("Carrier/tile name") to the title of the tile or the name of your carrier (whatever is displayed there)>
    A3: AutoInput Action [ Configuration:Type: Text
Value: Carrier/tile name
Action : Click
Is Tasker Action: false
Check Screen State: false Timeout (Seconds):20 Continue Task After Error:On ]
    <Allow for some time for mobile data to change screen.>
    A4: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
    <Toggle mobile data.>
    A5: AutoInput Action [ Configuration:Type: Text
Value: Mobile data
Action : Click
Is Tasker Action: false
Check Screen State: false Timeout (Seconds):20 Continue Task After Error:On ]
 

Attachments

  • Toggle_Mobile_Data.tsk.xml.txt
    9.5 KB · Views: 425
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones