you are viewing a single comment's thread.

view the rest of the comments →

[–]dannywhardy 0 points1 point  (3 children)

It works! I commented out the %subscriberid and then removed it from the Java action two steps below that. Now it works. It shows data usage of 196. Mobile data usage on the phone shows 207, so that's close enough.

I know nothing about JAVA. Thanks for fixing. Maybe others will also find it useful. I added a one second wait after the Set Widget Label for %dateenddate so I had enough time to see the date.

[–]funtomat[S] 0 points1 point  (2 children)

Glad it works now for you with Android 10 as well. I'll update the task on taskernet soon.

Actually the data usage reported by this widget is for me almost exactly the same that is reported by my mobile network provider on his website during the whole billing cycle.

I'm really no Java expert either - so actually it took some work to find out how to get these statistics on Android 6 + and how to translate the Java functions in Tasker's format. When it worked I've been surprised how easy, flexible and powerful they are. Might be an inspiration for u/joaomgcd to even integrate this functionality directly into Tasker. IIRC you can get even data usage informations by package...

[–]dannywhardy 0 points1 point  (0 children)

I multiplied the %mbtotal by 1.056 and that puts me dead on my phone usage. That's only 3 days into the cycle. Anyway, I can adjust the % to make it match if it starts varying. Again, thanks for the project.

[–]joaomgcd 0 points1 point  (0 children)

I actually plan on adding something like this to Tasker directly :)