RadionInfo.getNumberOfPacketsSent

Hi anyone know how to convert this to bytes? or in kilobytes? Thank you!

I think that you will find this method is misnamed and returns the number of bytes, not packets,

Tags: BlackBerry Developers

Similar Questions

  • RadioInfo.getNumberOfPacketsSent () what WAF?

    Hello

    is RadioInfo.getNumberOfPacketsSent () return the total number of packets send independently during which WAF packets are send? Is it possible to get packets only for a specified WAF (e.g. WLAN)?

    Thank you!

    This method returns the number of packets sent on the WAFs.  There is no method which returns a count for a particular WAF.

  • Use of surveillance data

    I have a request to add monitoring of the use of phones (Edge, GPRS, etc.) data for our application, I tried the SDK and nothing comes to can someone point me in the right direction?

    It doesn't have to be real-time, although that would be nice but surveillance of newspapers after the fact would be nice.

    It seems possible, given that demand for Mini Moni (http://www.ehnert.net/MiniMoni/) does.

    Thank you

    Lindsay

    You can use the getNumberOfPacketsSent and getNumberOfPacketsReceived of the class RadioInfo, methods that provide the number of IP bytes sent and received.

  • More information on packages

    Good day everyone,

    Is there anyone who knows when the

    RadioInfo.getNumberOfPacketsSent()
    

    and

    RadioInfo.getNumberOfPacketsReceived();
    

    is deleted? Is there someone who has the most information on that?

    Thank you

    a reboot (battery or off full traction)

  • Data sent and received by app

    long no_of_packet_sent = RadioInfo.getNumberOfPacketsSent ();
    long no_of_packet_recieved = RadioInfo.getNumberOfPacketsReceived ();

    packet_sent = new LabelField ("amount of packets sent:" + no_of_packet_sent);
    Add (packet_sent);

    packet_recieved = new LabelField ("amount of the packets received:" + no_of_packet_recieved);
    Add (packet_recieved);

    Hey all

    The above code returns the amount of data sent and received (in bytes from what I understand)

    I want to collect the data sent and received by the application, under the code gives me only one name of the Application:

    ApplicationManager Manager = ApplicationManager.getApplicationManager ();
    ApplicationDescriptor descriptors [] = manager.getVisibleApplications ();
    ApplicationDescriptor descriptor = ApplicationDescriptor.currentApplicationDescriptor ();
    String visible_apps = descriptors [0] .getName ();
    String current_apps_Descr = descriptor.getName ();

    Descriptor = new LabelField ("descriptor:"+ visible_apps ");
    Add (Descriptor);

    1. is there a specific function to retrieve data sent & received by app or how should you go about it?

    2. What am I doing wrong in the second part of the code that it displays all running applications?

    The guidelines would be apreciated.

    Thank you

    lol the methods you listed are the only way, there is no other, more information available.

    regarding the second question (better use a thread to one of the questions next time):
    ApplicationDescriptor descriptors [] = manager.getVisibleApplications ();
    This line gets you a table. You can use descriptors.length to check the size and a loop (for example) to iterate over it.

  • Clear packets sent / received

    Hi all

    Is it possible to erase the packets sent / received and return to 0?

    Code to get sent or received packets:

    long  no_of_packet_Sent = RadioInfo.getNumberOfPacketsSent();
    
    long  no_of_packet_Received = RadioInfo.getNumberOfPacketsReceived();
    

    Thank you guys

    No, not directly.
    You can store the current number and subtract the future results of

  • Number of send and receive packets

    Hi all

    We use getNumberOfPacketsReceived() and getNumberOfPacketsSent() of RadioInfo and it returns the number of send/receive IP packets by the radio, but we want number if bytes, how convert us no. Byte. packages? refers to the relationship between 1 equal packet bytes.

    Kind regards

    Shekhar.

    These methods must return the number of bytes returned.  There is a problem with BlackBerry handheld software version 4.5.0 that caused these methods return the number of packages instead.

    This has been fixed in recent versions of 4.6.0 and BlackBerry terminal software 4.7.0.

  • analyze network traffic

    Hi all

    first of all, I want to say hello and that this forum was already a big help for me.

    Unfortunately I could not find anything on how to analyze the network traffic on a blackberry device. It is possible to analyze the network (ip) traffic using an api (signed) java?

    Something like an OutboundMessageListener for IP packets would be perfect. What I found was net.rim.device.api.system.RadioInfo.getNumberOfPacketsSent (), but I want to get the content of all sending packets (ip). Any ideas?

    Thanks in advance,

    Steve

    not possible, unfortunately.

  • Number of send/receive bytes

    Hi all

    Is there a way to know the number of bytes send/receive through networks GPRS/EDGE etc in byte?

    Kind regards

    Shekhar.

    There is no possibility to get the bytes, only packets sent and received. don't ask me why.

    class RadioInfo
    public static long getNumberOfPacketsReceived()
    Retrieves the number of IP packets received by the radio.
    public static long getNumberOfPacketsSent()
    Retrieves the number of IP packets sent by radio.

Maybe you are looking for