mobile datanetwork idle
Moderator: Martin
mobile datanetwork idle
Is there any action which check wheather mobile data is being used or not. If it is idle for 30 sec., it should turn it off
Re: mobile datanetwork idle
To my knowledge it's not possible to do this yet. I have some items on my todo-list to provide network traffic features, but I'm not yet sure what's possible to create using the official APIs of Android.
Perhaps you could build something like this using an action Init Variable Text File and read one of the system statistics file for the mobile interface, something like this:
Init Variable Text File: /sys/class/net/rmnet0/statistics/rx_packets and use an action Script or condition Expression to see of this value changed within the last 30 seconds.
Perhaps you could build something like this using an action Init Variable Text File and read one of the system statistics file for the mobile interface, something like this:
Init Variable Text File: /sys/class/net/rmnet0/statistics/rx_packets and use an action Script or condition Expression to see of this value changed within the last 30 seconds.
Re: mobile datanetwork idle
Hi martin
Thanx for help but can you please publish the flow as i am very weak in writing scripts!!
Thanx for help but can you please publish the flow as i am very weak in writing scripts!!
Re: mobile datanetwork idle
Hi
I have tried to store the value in global variable but how to check wheather this value have been changed or not within 30 sec & what should be the trigger for this flow??
http://automagic4android.com/flow.php?i ... f4acfc6bc9
I have tried to store the value in global variable but how to check wheather this value have been changed or not within 30 sec & what should be the trigger for this flow??
http://automagic4android.com/flow.php?i ... f4acfc6bc9
Re: mobile datanetwork idle
Code: Select all
matches(String s, String pattern) // ?
Re: mobile datanetwork idle
Hi
Can you write the script ??
Can you write the script ??
Re: mobile datanetwork idle
Thanx colabi
You solved my problem
You solved my problem

Re: mobile datanetwork idle
I load some flows with also get data from file, but in my unrooted ZOPO ZP999 with 4.4.2 there is no rmnet0 no statistics directory and no rx_ files.
Anyone a idea where i can find it?
Anyone a idea where i can find it?
Re: mobile datanetwork idle
Hi,
You can try to use action Init Variables Network Traffic to load this information into variables. In the past there have been some issues with the API used by this action on a few Android versions and devices but theoretically it should work.
Regards,
Martin
You can try to use action Init Variables Network Traffic to load this information into variables. In the past there have been some issues with the API used by this action on a few Android versions and devices but theoretically it should work.
Regards,
Martin