How can I determine reliably the pixel width and height of the screen?

Hi all.

The JavaDoc for Display.getHeight () and Display.getWidth () States that:

Retrieves the total drawing height of the display.

Retrieves the total drawing width of the display.

respectively.

What that means, is that if the software keyboard (for example a 9860) is opened, the value returned by getHeight() will be different from the value returned when the keyboard is NOT open.

SO, how can I reliably get the width/height in full real pixels of a screen?

You coulld get just once at boot - time before your application has opened a form with an input field.  Sharing this trick.

Tags: BlackBerry Developers

Similar Questions

  • How can I get a box of width and height that I resize an object in Illustrator CS6?

    In a training video on Illustrator cs6, that a device is shown below, only the instructor manually resizes a work plan using the tool of work plan:

    Image for discussion.JPG

    Justin, the instructor, called the little box that immediately shows width/height a "box of width and height, but the search on this term is not productive. When I run the device program is not available, not only the video explains what option makes available or what could have changed on my copy to hide or disable the box. Even though I know that I can achieve the same effect by choosing the information window and can even adjust settings more precisely using the Control Panel, I would like to have the convenience of this box. Anyone can set up why I'm having a problem?

    I note that the same type of display in the same series of videos (from Lynda.com) is indicated when the instructor resizes an image. After that 30 minutes of research on Google and the search for the identity of this device and how to activate it just empty... can someone point me in the right direction? An experienced editor of first, I'm trying to expand my skills identified in more than Adobe and new to Illustrator. Please forgive me if I'm missing something obvious.

    Thank you

    Jay from the Bronx

    Try searching some guides. The rocker is Cmd (Ctrl) u.

  • How can enlarge everything on the screen to 125% or even 150% as you can do in Google?

    How can enlarge everything on the screen to 125% or even 150% as you can do in Google?

    CTRL + will enlarge the page.

    You can set also permanently this by installing the NoSquint add-on.

  • How can I see on the screen, if the caps lock key is in upper or lower case when you complete passwords?

    Original title: Confirmation screen.

    How can I see on the screen, if the caps lock key is in upper or lower case when you complete passwords?

    Hi WalterAshton,

    You are welcome.

    If you want to provide feedback to the development team of Windows, visit the Microsoft Web site below:

    http://www.Microsoft.com/en-us/Windows/compatibility/en-us/CompatCenter/feedback

  • How can I turn off the screen on W4 - 820 without putting it to sleep?

    Whenever I press the power button, the Tablet goes to sleep. I know what is happening because, in the power options > power settings button > sleep is selected to "on battery" and "on".

    The question is how can I just disable the screen without leaving the tablet to go into a deep sleep? Its a big problem and really frustrating that it stops all make... even a break torrentz copy of data and breaks.

    Also I went into the settings advanced under power options and tried to change the settings "turn off the display of", but whatever number I put here, the same is my settings "sleep after".

    I don't know how to solve this problem. Can someone please? Thanks in advance!


  • How can I get to the screen to insert the DNS settings? Printer continues to fall from the network

    Windows 7

    Photosmart 6520

    How can I get to the screen to insert the DNS settings? Wireless network printer continues to fall.

    The screen to manually set the DNS and IP parameters is in the SAP, or shipped to the printer Web server.  To access this page, it will take the IP address of the printer.  This information is found by pressing the icon on the front of the Photosmart 6520 wireless.

    Once again, we have the IP address, and then they could type this information in the address bar of their favorite browser.

    On another thread, you have mentioned the difficulties getting to the Web integrated printer server.  It is possible that the printer has a valid IP address, but still has no "communication" with the router.  Have you tried to enter the menu of the 6520 wireless and default network selection.  After having done that, then we can re - run the Wireless Setup Wizard in the wireless menu to reconnect the printer to the network.

    With this new valid IP address, you can access SAP of the printer?  In addition, make sure that the printer and the PC are connected to the same network access point.  Let me know how it goes.

  • How can I print just the screen that I'm looking?

    • How can I print just the screen that I'm looking? CTRL + P doesn't (I have WIndows Vista)

    auntjilly wrote:

    * How can I print just the screen watching you? CTRL + P doesn't (I have WIndows Vista)

    Two ways:

    (1) by design, as it has always been with all versions of Windows, press copy the entire screen, including the wallpaper desktop, in the Clipboard (iow, in RAM).  By pressing + of only copies the active window to the Clipboard.  To view the screenshot, open a graphics program, such as MS Paint and press + V.  This will paste the contents of the Clipboard (your screenshot) in the file open and allows you to view or save it as a file for later use.

    How to capture screenshots in Windows by using the print screen key
    http://support.Microsoft.com/default.aspx?scid=kb; us; 173884

    (2) as long as you have a newer version of Vista as the Home Basic edition, you can use the Snipping Tool.  (Start > all programs > Accessories).

    Bruce Chambers

    Help us help you:
    http://www.CatB.org/~ESR/FAQs/smart-questions.html

    http://support.Microsoft.com/default.aspx/KB/555375

    They who can give up liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin

    A lot of people could die rather that thinking; in fact, most do. ~ Bertrand Russell

    The philosopher never killed the priests, while the priest killed a large number of philosophers.
    ~ Denis Diderot

  • How can I turn off the screen of welcome in PS CC 2015

    How can I turn off the screen of welcome in PS CC 2015?

    Edit > Preferences > General: check "don't show welcome screen on launch.

  • How can I determine if the host is ESXi free or licensed?

    How can one know if an ESXi host is ESXi free, or if it is allowed?

    I searched through the crowd on a couple of different configurations and I don't see anything obvious that indicates this.  I ask because there are some features that only work on ESXi under license and would like to be able to detect the server type I'm talking about.

    I guess that there is a way to do so under the ha - Manager of licenses.

    Thank you

    Eric

    The method that I use to check for this in my scripts is to use the licenseManager watch ownership licenses and see if the license is equivalent to "esxBasic", the host is ESXi, if both these things are true, then you are using the free version of ESXi. In my view, there is another method in which the free version does not contain the full name of some kind, but I forgot what it was. If the above solution worked for me for some time and is simple to check

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • How can I turn off the screen saver in Windows Vista?

    How, under Vista, disable my screensaver?  I'm trying to update my tomtom gps device and the screen saver must be disabled for me to receive a long download!    How can I disable the screensaver on Vista?

    Hello

    Please contact the Microsoft Community.

    I wish that refer you to this article-

    http://Windows.Microsoft.com/en-us/Windows/turn-screen-saver-on-off#1TC=Windows-Vista

    Let us know if you have problems with Windows in the future.

  • How can I get around the screen of the user account?

    Original title: bypass the restore to the starting point

    Hello, recently, I chose to use the system restore and everything seems fine, except at the beginning: W7 boot computer and be ready to go.

    Now, computer displays a screen showing as the only user and I must press the space bar to get to W7
    How can I fix to bypass the screen of the user?
    (I'm talking the same screen you get when your computer was asleep and you open the lid to wake up).
    Thank you.
    Jmont_rose

    Hi Jmont_rose,

    Welcome to the Microsoft community. According to the description you want to bypass the login screen of the user.

    ·         You want to bypass the login screen and go directly to the desktop?

    If so, I suggest you follow these steps:

    (a) press Windows Key + R.

    (b) type control userpasswords2 in execution prompt and press enter.

    (c) uncheck users must enter a user name and password to use this computer.

    (d) click on apply.

    (e) enter your user name and password. Click OK two times.

    I hope this helps. Let us know if you need help with Windows related issues. We will be happy to help you.

  • My 6 screed work items suddenly disappeared to blue while he was working on the image. How can I return to the screen by default?

    the screen of my work disappeared suddenly blue while he was working on an image. How can I go back to the standard work (default?) screen

    litztombo wrote:

    the screen of my work disappeared suddenly blue while he was working on an image. How can I go back to the standard work (default?) screen

    "Blue screen" looks like this:

    blue screen of death

    Everything you need to know about the Blue Screen of Death

  • How can I lock you the screen to turn on an iPad Pro?

    With an iPad 3, you can lock the screen turn by going to the "General" settings and by activating the switch on the side locking screen turn. On the iPad Pro there is no option to lock the screen to turn or switch on the side. Someone at - it any information on that?

    Have you tried using the control center? -as you know - you can call it by sliding upwards from the bottom

    It has an option to lock the screen - it looks like a padlock with a circle around it

  • How can you determine what the user watch calendar view (month, week, day, list) the calendar of CSS (5.0)

    We run Apex 5.0.1.00.06 and I would like to add a region to a page, if the user displays the LIST of the CSS calendar view. I can't understand how to determine which view the user displays currently. Is it possible to determine to create a condition to show another region in they are on a particular view?

    BillH104 wrote:

    We run Apex 5.0.1.00.06 and I would like to add a region to a page, if the user displays the LIST of the CSS calendar view. I can't understand how to determine which view the user displays currently. Is it possible to determine to create a condition to show another region in they are on a particular view?

    This can be achieved using some dynamic measurements, to hide the region if the calendar is the display month view when loading the page and to show/hide the region when you click the list/month selector.

    Add a static region ID to region calendar for use in jQuery selectors.

    Name: See the region list - load

    Event: Loading the page

    Condition: Expression of JavaScript

    Value:$('#static-region-id .fc-month-view').length > 0

    Real Action

    Action: Hide

    Selection type: Region

    Region:

    Nom : See the region list - click

    Event: Click

    Selection type: jQuery Selector

    jQuery Selector:.fc-button-group button

    Condition: Expression of JavaScript

    Value:$(this.triggeringElement).hasClass('fc-list-button')

    Real Action

    Action: Show

    Selection type: Region

    Region:


    Action of false

    Action: Hide

    Selection type: Region

    Region:

  • How can I determine if the current date is between two dates?

    I'm trying to post a link when grave the current date between two dates. I have setup the startdate and the enddate. When he falls between the startdate one date enddate, the link will be apear. The startdate and enddate have already been formatted previously, as mm/dd/yyyyy. I tried to use the following script, nothing will do. What I am doing wrong?

    < cfif startDate GTE #dateformat (now (), "MM/DD/YYYY") # AND enddate LTE #dateformat (now (), ' MM/DD/YYYY') # >

    Don't know what you're talking about. I used the #dateformat(date_entered, 'mm/dd/yyyy') # for years without problem. I googled the datediff function before posting here and what I've found is datediff determines the whole number of units by which date1 is less than date2. I don't know how this can help me.

Maybe you are looking for

  • My iPad will not keep my Google account.

    I need to connect to a Google Calendar and my families calendars.   My Mac, my wife, my iPhone, my wife's iPhone Mac and my old iPad could connect without any problems.   But recently I replaced my iPad with an iPad pro. The calendar app does not see

  • Blank gray screen on wake?

    So I am using this Mac mini (late 2014, 2.6 GHz Core i5, 8 GB memory, 1 TB HDD, OS X El Capitan 10.11.6) for almost a year now and I'm having a serious problem with waking up from his sleep recently. If I let him sleep long enough, I get a gray scree

  • Why is my Mac OSX Firefor 17 so slow?

    I get the rotation drive, everytime I try to play Farmville on facebook. This iMac is only 2 years old and it's terrible. Takes forever to generate reports to Family Tree Maker too.

  • ENVY TouchSmart M7 HP - K010DX: ENVY of HP TouchSmart M7-K010DX add as second HDD SSD

    Hello. I WANT HP TouchSmart M7 - K010DX 17.3 "." Is it held to the second HARD drive inside, I want to put the SSD as a secondary HDD.

  • Photo Story 3-How do to remove the silent space between tracks

    I use Photo Story 3 to make a video.  I've imported all the photos and added 7 different pieces of music.  The program automatically leaves a silent space between pieces of music.  If an image has no music to accompany it.  How delete/erase this sile