Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 354
Registered: ‎06-05-2013
My Device: Blackberry Z10
My Carrier: Vodafone

How can i calculate Data Usage((Wifi + Cellular) - Separately) in java eclipse?

hi,

 

I want  to calculate data usage of wifi & cellular network in blackberry,

 

i know radioinfo api for this but it will give total usage, i want to calculate wifi+cellular usage separately

 

 

Thanks & Regards

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How can i calculate Data Usage((Wifi + Cellular) - Separately) in java eclipse?

you can calculate this by observing the current routing state of the device and count the traffic for each network after it becomes available.
Just as an idea.
There are no other APIs to give you a more granular info.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Contributor
Posts: 39
Registered: ‎06-13-2013
My Device: 8830
My Carrier: iiberry

Re: How can i calculate Data Usage((Wifi + Cellular) - Separately) in java eclipse?

To tell you the truth,I also want to know for a long time.....