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

New Developer
Posts: 134
Registered: ‎01-11-2011
My Device: curve

How to calculate data usage on blakcberry programmtically



I need to calculate data usage (uploading and downloading and surfing) on blackberry via gprs.how to do this.

Posts: 17,003
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to calculate data usage on blakcberry programmtically

http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/RadioInfo.html#getNumbe... resp sent.
note that despite the name it returns the number of bytes, not packets.
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
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to calculate data usage on blackberry programmtically

But be aware that this includes WiFi usage.  The only workable option that I am aware of to try to separate this out involves have a listener test the current connections and assume if WiFi is available, that it is being used.


Search the forum, this issue has been discussed a number of times.