USBPort status

Hi, can anyone let us know if BB is connected via USB to the PC or charger, which would be the return value?

int usbStatus = USBPort.getConnectionState ();

I tested in OS 4.2.1 Simulator, for some reason, it always returns 3 (although I have connected USB similate on / off).

Thank you.

This method returns a bitmask of USB_STATE values defined in the SystemListener2 interface.  Please take a look at the JavaDocs for the descriptions.

The BlackBerry Simulator not to duplicate the behavior of a real BlackBerry when you use this method, because it is not able to fully simulate a USB connection.

Tags: BlackBerry Developers

Similar Questions

  • The restoration o/s - dv6130us, errors - USBPORT. SYS, FAILURE OF PAGE IN THE BOX NOT PAGINATED

    I have a laptop dv6130us. The system was THAT XP Media Center pre-installed with 1 GB of RAM and Vista capable at the time of purchase. I had updated the o/s to Vista first home with 2 GB of RAM. the laptop ran fine for 2 years until one day "Blue Screen of Death" greeted me. Lucky for me I took my backup of data among priority actions.

    Vista Memory control indicated a problem with the memory and advised me to contact tech support. Tried reseating the RAM modules and restart... the o/s continued to hang with the blue screen, except in Mode without failure.

    I tried to restore the o/s using the recovery Partition as well as discs of recovery without success. Whenever I tried recovery using the recovery discs, I would get the following message if poster after preparation of recovery partiion finished and restoration began.

    "A problem has been detected & windows has shut down to prevent damage to your computer.

    "USBPORT. SYS

    An attempt was made to write to read-only memory ".

    When I tried to restore from the recovery using F11 partition, the recovery would take hardly 30 seconds and the system will re-start with a

    "NTLDR is missing", on a black screen or a

    "PAGE_FAULT_IN_NONPAGED_AREA * STOP: 0 x 00000050" error message on a blue screen.

    I tried various combinations of modules of RAM without success. Checked the BIOS HP utility for HARD drive tests which indicated a 'pass' for the HARD drive tests 'Fast', 'Extended' & 'Smart '. This against the Tech Center guy who told me that the HARD drive was bad and must be replaced.

    Even tried to retrieve using the manufacturer menu wiping the HARD drive completely and re - install the partiion recovery but not good.

    Failure to load Windows XP Pro and Mandriva Linux 9 / Ubuntu 9.0. The last two Live DVD.

    Current status: laptop does not go beyond the HP welcome screen.

    Can someone help me please?

    Message edited by Delphine on 02/11/2009 11:10

    Hello

    I finally managed to start Notepad using an external floppy with the BACK of old good drive.

    Used two fresh memory modules (512 MB each) borrowed from a friend.

    You need to Flash the BIOS by using the download from the HP Site - Driver Downloads (for dv6130us). Noticed the same file name for the Softpaq.exe for many models.

    Used the original edition of XP Media Center Recovery DVD and voila... recovered from the o/s finally.

    ContrГґler with MemXP86 (or something similar) downloaded from.NET to check the original strips. It seems one of the modules had gone Kaput! This combined with a certain way the BIOS is corrupted complicated the case.

    Anyway, the laptop is finally running and I am certainly not back to Vista... until Microsoft comes up with something stable.

    I put this up, in the case where someone is facing similar problem a few leads to follow.

    Thank you.

  • People scan status

    On my MBP, I see the the following information when I click on people in the sidebar of Photos.

    However, when I click on the people in my 27 iMac it goes always directly to page list all the people who exist in the data of my people.

    Is it possible to get the status information shown above for the MBP?

    If there is no statue, then the analysis is completed on this system

    LN

  • Sierra, stuck in the 'Downloaded' status

    The Sierra dmg has failed with an error "invalid checksum". I would like to re - download the file to see if it has been altered during the download - but the app store has the gray Sierra drop-down selection in a status of "downloaded".

    How can I redownload the dmg file and try again?

    Finder > Applications

    Don't you see macOS Installer Sierra?

    If so, place the macOS Installer Sierra in the trash and try to download it again.

  • Disappears from the status bar

    When I'm away from mobile data my status bar disappears.

    What mobile data?

    Try resetting your device. This will not erase your data stored on that device.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

  • C error: ld: library not found for - introduction collect2: error: ld returned 1 exit status

    I'm trying to compile the "Hello World" code C base with gcc, but the following error message:

    LD: library not found for - introduction

    collect2: error: ld returned 1 exit status

    The code itself is nice, he ran into another computer with no problems.

    First gcc had manually, the problem, installed and then uninstalled and installed with homebrew and still have the problem. How can I fix?

    (Have the 5.1.0 version of gcc)

    Okay, so nobody has responded, but I found a solution. This is the version of gcc, apparently more recent versions have this bug, one that works and compiles the codes is the 4.9 version, in case it would be useful to someone.

  • Is it possible to add a mute icon on the status bar

    I understand the desire to keep the clean status bar, but a mute icon would be really useful for many users. This is my first iPhone and I had a LIFEPROOF case to protect it. The problem is that this case does not allow me to determine the setting of the switch ring looking from the side of the phone. The only way that I can know if the ringer is on is to flip the switch back and forth while watching the status of ringtone icon screen.

    Yyou possibly tell there is a problem with the case, but I bet it's true for most cases, in particular the raincoat water ones.  If Apple does not support to add even an icon to the status bar at least Apple could put on display today ' hui / Notifications of menu drop-down.

    You can provide feedback to Apple here, http://www.apple.com/feedback. This is a user to user support forum, and Apple is not here involved. It is the only way for them to know you want to see a change.

  • check the status of the guarantee

    I don't know the date of purchase my Iphone. How can I check my warranty status?

    https://checkcoverage.Apple.com/

  • iCloud Apple music status is incorrect

    I have about 50 + songs that tend to sync my iPod Classic because they (wrongly) show Apple music iCloud status.

    The songs are all ripped to my own CD or LP/EPs and imported music in iTunes.

    I use two Match iTunes and am a subscriber of Apple's music. My version of iTunes is 12.4.3.1.

    Old bandages show removing the download (song) and the new download should be properly thru, but a test of several different songs give the same incorrect state music Apple iCloud.

    Someone at - there a way to fix this?

    Thank you

    David

    Yes, I had this problem also. I contacted apple support and their engineers reset my library to an end and it solved the problem, but there are a few songs that could not be reset, in which case Apple gave me the credit to buy the song again, and that fixed the issue

    bbEst thing to do is to contact Apple support speak to a Manager or consultant and explain to them and you want to reset your library. You may need to disable iCloud music library while reset happens that it worked for me, it will be useful

  • I just installed an airport extreme router and WiFi works, but the status light still flashes.

    I just installed an airport extreme router and WiFi works, but the status light still flashes.

    Open airport utility... Click EI... and see what the cause of the problem. It will give the list of questions on the summary page. Click on each of them and he will offer you even solutions.

    for example the firmware needs to be updated... nothing major... or DNS is wrong or double NAT...

    Without our crystal ball, we do not know what is the issue.

  • What happened to the download status bar in Firefox 42?

    I can't say when a download is finished, what happened to the status bar in Firefox version 42?

    Type of topic: customization< enter > in the address bar.
    In the new window, look for the icon. When you find it, press and hold
    the left button on it and move it to where you want it to be.
    You can move the icons you want here, but
    some icons are locked in place.

    Also, there is a default button in the Middle at the bottom.

    Photo 1, that's what it looks like in the window customize.
    Photo 2, this is what it looks like on the toolbar.

  • How to follow the direction of Adobe 'Flash uninstall"to check the Firefox browser for the 'status' of Adobe Flash? --

    I downloaded Adobe uninstall (for Mac, OS x 10.4ff) and he ran to get rid of old shards of Adobe Flash, be very careful to follow the Adobe provided through their Web site. The last thing they ask you to do is to "Check that the uninstall is complete", by restarting your computer and then open your browser and check the status of the Flash Player. BUT it seems not to be a way to check the State of Adobe Flash Player on current versions of browsers Mozilla product.
    How can I check that the old version of 'Flash Player' is really gone?

    Firefox 41.0.2 on Mac OS X 10.8.5

    edited by e-mail from the public and robots to spammers

    See also the "tools > Modules > Plugins" (topic: addons) page and all: plugins page.

  • Why Techtool and disk utility reports different SMART status?

    my laptop sometimes starts the sign of prohibition, and some start successfully.

    I guess it's the HARD drive, that this assumption holds up to what otherwise. All the Apple hardware test has passed including the extended version.

    the image below illustrates the tool of technology S.M.A.R.T status report is a failure because of "current pending sector count", while the State SMART Disk utility report is checked.

    who should I believe? or should I suspect the flex cable?

    Hi chemotkbiloIn, first of all save all your data now. I would tend to believe TT. But you don't have to guess, the best way to find out would be to bring your Mac to any Apple store for a free evaluation.

  • extend the status bar

    the Manager of the activity is not real-time enough, the status bar I cannot get to expand.
    imap accounts migration from one server to another, really needs to see the overall situation in real-time with what thunderbird done and finished. IM open to the addition of an addon, but have not found a good fit for this challenge.

    Try mailtweak, with the option "Cache status message" .

    If it does not immediately install, install first of all this add-on .

    Alternative download site: http://mirrors.ibiblio.org/mozdev.org/mailtweak/

  • 'Research' on the status bar

    I used iphone 5s.

    Today, I get my phone 'search' in the bar shows.

    I need to change my SIM card, but still in the 'search' in the status bar.

    can be any someone help me...

    Thank you...

    Hello

    Follow the instructions here:

    If you cannot connect to a cellular network or cellular data - Apple Support

Maybe you are looking for