Tutorial :How to collect data programmatically for the performed network traffic on BlackBerry?



Question:

I want to get the data about when a connection from the device is established, when the connection is terminated and how many bytes were transferred (in/out). I couldn't find proper listeners in the BB API. I found application that does this and I am wondering how this can be implemented?


Solution:1

You could take a look at the RadioInfo class - there are methods in there such as getNumberOfPacketsReceived() and getNumberOfPacketsSent() that might do what you want.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »