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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
NGeldenhuys
Posts: 176
Registered: ‎04-12-2012
My Carrier: vodacom
Accepted Solution

Clear packets sent/ received

[ Edited ]

Hi all,

 

Is it possible to clear the packets sent/ received and start from 0 again??

 

The Code to get sent or received packets: 

 

long  no_of_packet_Sent = RadioInfo.getNumberOfPacketsSent();

long  no_of_packet_Received = RadioInfo.getNumberOfPacketsReceived();

 Thank you guys

Please use plain text.
Developer
simon_hain
Posts: 13,796
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Clear packets sent/ received

no, not directly.
you can store the current number and subtract it from future results though
----------------------------------------------------------
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
Please use plain text.
Trusted Contributor
NGeldenhuys
Posts: 176
Registered: ‎04-12-2012
My Carrier: vodacom

Re: Clear packets sent/ received

I was also thinking of doing that :smileyhappy: 

Please use plain text.