tags:

views:

25

answers:

1

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?

A: 

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.

Marc Novakowski
Thanks Marc,It seems that those methods return the number of the "Number of packets" in 4.x, but "Number of bytes" in 5.0. However after searchig for those methods in the net, it seems that there are to many doubts about their use. I am wondering if there are hidden or some partner APIs about this?
Lyubomir Todorov