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.

Tags: BlackBerry Developers

Similar Questions

  • How to check the total of the data sent and received via Web Service

    Hi guys

    I develop an application that receives data on about from server using the Web Service. Any fast way I can find total data sent to the server and the total of the data received from the server by my application?

    Any help would be much appreciated.

    Pinsard

    Check this thread:

    http://supportforums.BlackBerry.com/T5/Java-development/calculate-data-usage-for-particular-applicat...

    It could be that useful...

  • How can you unpack the emails and bring them back to date sent and received?

    I downloaded two files to the box with FolderLink and once I sent the e-mail of my emails in my Inbox started immediately to compact. I don't know that it will probably continue to my Inbox, sent, etc.. How to reverse this trend and to bring them to sent date and the date of receipt? Thanks V.

    _ http://KB.mozillazine.org/Thunderbird: _Tips_:_Compacting_Folders

  • How can I return the sent and received faxes in the fax in Windows 7 program?

    Hello

    Here are the details.  I had some computer repairs and fax sent and received files were gone.    From a previous post here, I found the sent and received faxes on one stored hard drive in C:\programdata\microsoft\windowsNT.  I looked at them and they were all there.  The thing that is missing is something that can list the fax sent and received in the program so that they are.

    I tried the fax software and items sent and received were still missing.

    Thus, the data is there but not accessible from the program.

    What I am doing wrong?

    (Moved to programs)

    Hello

    Please contact Microsoft Community.

    Analysis documents are stored in the Documents folder under scanned Documents. It will not appear in the view of the analysis until you copy all your data from C:\Program Data\Micrsoft\Windows NT\MSFax scan to C:\User\UserName\MyDocuments\.

    Note: Close and reopen Windows Fax and Scan, once you finished.

    Meet us, then we can help you further.

  • How to save all e-mail sent and received in their folder structure

    I want to just save all emails on my system, sent and received, keeping the structure of folders. How can I do this?

    'Save '? What will you do with your backup?

    For the backup as insurance against hardware failure, or for transfer to another installation of Thunderbird I would make a copy of my profile.

    https://support.Mozilla.org/en-us/KB/Profiles-TB

    For archiving reasons where I would be able to read the messages I would like to export to html, eml or perhaps in pdf format.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/ImportExportTools/ can be useful for this.

  • delete e-mails sent and received, deleted out of the box delete on hotmail

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: need to recover deleted sent and received e-mails deleted from delete box on hotmail is it possible?

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Oh, was safe, he can hide somewhere in the hard disk of laptop, the police are able to shoot stuff when necessary so there must be a way, surely?

    Yes, there is a way, but for an ordinary person (if you do not use Windows mail, windows live mail or outlook) it won't be legal or cheap.

  • Import faxes sent and received

    I can not access old faxes sent and received by using fax for Windows 7 and the scanning application. Win XP had an import feature in Fax Console, but this doesn't seem to be present in Win7.  I have correctly sent and received new faxes under Win 7 and these are posted as expected, however, even if I copy my old .tif Fax files manually into the new appropriate directories, they still are not displayed.

    I ended up creating a folder (for example, the "old fax machines") obvious under my documents on Win7 and copying it all files Windows XP fax.  I'm looking for a fax in the application fax and scan first, then in this folder.  Not quite the same as that of all "under one roof", but works...

  • How can I define a common font and size for all emails sent and received?

    He says it all really. Any help gratefully received.

    Yes you can. Go to Menu > Options > Options > display > advanced and uncheck the box 'allow messages to use their own police. This box should be subject to half way down the options.

    Have a great day!

    Jon

  • My emails are sent and received in French. How can I change it back to English?

    e-mails to friends are in french and I do not speak french

    I was receiveing emails in French, which is not my language and my friends are complaining that they receive a lot of emails from me in french. How can I fix it?

    Hello

    1. what email service make you?
    2. don't you make changes to your computer, after which the issue started?
    3. what language is set to the computer?
    4. is the relevant question in this particular email service?

    I suggest you only to contact the provider of mail service for the best help on the issue. You may need to change the language settings in the email.

  • Where in Windows structure file are sent and received emails stored?

    I want to save my entry and exit of the boxes with Carbonite. But when right clicking Properties and find where are stored the program files I do not see the in and the box files. Can someone tell me where to look?

    In fact, after a few minutes, I found what you mean. It turns out has been be saved. But thanks to that I had no idea this and other available information.

  • How do I delete old emails sent and received, and keep the other? I know I could erase 1 at the time but a lot then how are we doing? thyanks__

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    It kind of depends on what you use for email...

    I think that in the majority of applications of electronic mail, when you click to select one, you can hold the CTRL key to select another allowing you to select as much as you want one by one.  Jut skip the ones you want to keep.

    Then click right those selected and delete (or save).

    If you have a big block to do, click to select the top one in the block where you want to start, hold down the SHIFT key and click on the bottom in the block where you want to end.  Who will choose the top, down one and all those in between.

    You can be more picky with your records by just hold down the CTRL key and clicking on things individually, but you get the idea.

    Do not guess what the problem might be - understand and resolve it. I need YOUR voice and the points for helpful answers and propose responses. I'm saving for a pony!

  • How you set the font style and size as the norm for the e-mail that is sent and received?

    I, too, have this problem. Am using Outlook.

    Separated from -.

    https://answers.Microsoft.com/en-us/Windows/Forum/windows_8-desktop/how-do-you-set-the-font-style-and-size-as-the/d48a95c5-68a1-4766-873d-d9924004feab

    Outlook policies can be changed in options.

    1. On the file menu, click Options
    2. Go to the mail section, and then click stationary and fonts
    3. Choose your fonts

  • How to save all e-mail sent and received?

    I want to keep these just in case thunderbird crashes

    It's a very good idea. Backup your Thunderbird set profile.
    _ http://KB.mozillazine.org/Thunderbird: _FAQs_:_Backing_Up_and_Restoring

  • Look a sent or received files

    Hi guys,.

    First of all, sorry if I am posting this in a wrong area. The problem is really in the title: I can't seem to find the function that would allow me to see all the files sent and received. I'm sure it was located under the "View" tab along the top of the customer, but it is simply not there more. Has it been deleted, or has my Skype on listening or...?

    All the light shined on it would be extremely useful.

    Thanks in advance

    Unfortunately, this very useful option has been removed since the last update of Skype.

    If you want this option, you must uninstall the currently installed version and install the older version of Skype 6.21.0.104.

    http://download.Skype.com/MSI/SkypeSetup_6.21.0.104.msi

  • How can I set up my time to send and receive emails (Hotmail) standard time?

    My sent and received emails display time is by far a lot behide my local time / Orlando in time.

    Time on my computer is eastern standard, but my other email (hotmail) displays local time.

    How can I reset that pls?

    Hi Oom2021,

    I suggest you to follow the steps in the article provided and check if it helps.

    http://windowslivehelp.com/solution.aspx?SolutionID=6d8142c5-5892-4F04-9cc8-1d51e7c38f73

    If the problem still persists contact Windows Live forum to get help.

    Windows Live Forum - http://windowslivehelp.com/

Maybe you are looking for

  • Tabs hang in the background and update to the opening

    I had this problem since I upgraded to 29 on Firefox for Mac. When a tab is open in the background for a while, it suspends the sort of himself. The tab that is open in the foreground was never this problem, so I guess this has something to do with t

  • Firefox blocks access on port 21 on my FTP server. How to remove the block?

    FireFox crashes me access to my FTP server at home on port 21. There must be a relatively simple way to remove this block. Where and how can I remove it?

  • SPM30 high temperature

    Hi all,I have a problem? with my laptop SPM30.When it is on and connected to the power, the temperature rise to uncomfortable levels (without equal treatment no matter what). The cones normally on both fan.The temperature reachedbelow: 55 oCpalmrest

  • System missing Base, Win 7 HP DV7 driver

    Lack of Base system device Here are the values of lds of material Base system devicePCI\VEN_197B & DEV_2382 & SUBSYS_30FC103C & REV_00PCI\VEN_197B & DEV_2382 & SUBSYS_30FC103CPCI\VEN_197B & DEV_2382 & CC_088000PCI\VEN_197B & DEV_2382 & CC_0880 Base s

  • Cannot print a Web Services fact sheet to get a claim Code

    I am trying to add a m276nw of MFP HP LaserJet Pro 200 colour as device ePrint.  I have updated the firmware of the printer.  When I activate the web services button print fact sheet appears, but nothing prints when I click on it and I can't get a cl