How to determine the size of the screen

Is there a way in OS Version 4.3.0 to determine when executing what the resolution of the screen of the device on which the application is running?

Thanks for the help.

Take a look at the net.rim.device.api.ui.Graphics class

To determine the size of the screen use the static methods:

Graphics.getScreenWidth ();

Graphics.getScreenHeight ();

To determine the resolution of the screen in pixels per meter (PPM), use the following static methods:

Graphics.getScreenHorizontalResolution ();

Graphics.getScreenVerticalResolution ();

Tags: BlackBerry Developers

Similar Questions

  • How to determine the size of the file and the pixel of an image?

    How to determine the size of the file and the pixel of an image?

    1 MB is 2 ^ 20 bytes. It is easy to represent long:

    final long MegaByte = 1048576L; //1048576 is 2^20 and L denotes that this is a long
    if(fileConn.fileSize() > MegaByte)
    {
    do something here
    }
    
  • System tablespace allocation how oracle determines the size of the measure

    Hello

    It may be a silly question, but the I must request and obtain a few knowdge

    Assume that the allocation_type tablespace is system so how oracle determines the initial measurement and size max measure?

    Osama has provided useful links to the information you need. I'll just add with locally managed tablespace that the maximum number of spans is always unlimited even if you specify a value in the storage of declaration of establishment clause. Oracle does not take into account the value you provide and will with unlimited. I consider this unfortunate since in most cases, I know how large tables can reach and if the table extends beyond that point a developer made a mistake.

    HTH - Mark D Powell.

  • Installation on RHEL 5.4 11.2.0.1.0 (64-bit) > how to determine the shmmax

    Hi, everyone-

    I try to install on RHEL 5.4 11.2.0.1.0 (64-bit). I have a total of 46G of memory.

    It is said that in the Oracle documentation:
    "The minimum required value for shmmax is 0.5 GB. However, Oracle recommends to set the value of shmmax 2.0 GB for optimal performance of the system. ».

    In the other docs it says it should be 50% of the total memory.

    Please advise!

    If you have access to the Support of Oracle, see notes

    Semaphores and shared memory - an overview [ID 153961.1]
    How to determine the size of the SGA (7.x, 8.x, 9.x, 10g) [ID 1008866.6]

  • How to enlarge the screen of Windows Server 2003 on VMware Server 2?

    People,

    Hello. Because Windows 7 is not compatible must be installed to PeopleSoft PIA, I need to install VMware Server 2, and then install Windows Server 2003, which is compatible with PIA, on the virtual machine.

    But when I open Windows Server 2003 on the virtual machine, Win2K3 screen is very small, and its size is of about 1/4 of the screen of my computer screen. It is not comfortable to work for a long time.

    People know how to enlarge the screen of Windows Server 2003 in a virtual machine VMware Server 2 so that its size covers all of my computer screen?


    Thanks in advance!


    Lucy

    Did you already installed the VMWare tools in your guest OS in VMWare? In general, it helps a lot to be able to redefine a larger screen definition.

    Nicolas.

  • PAVILION 22xi: COME PULIRE LO DEL PAVILION 22xi SCREEN / HOW TO CLEAN the SCREEN OF THE 22xi of FLAG?

    COME PULIRE LO DEL PAVILION 22xi SCREEN?

    Inoltre:
    Come rimuovere eventual aloni esistenti da previous pulizie?

    HOW TO CLEAN the SCREEN OF THE 22xi of FLAG?
    In addition:
    How to manually remove existing halos of previous cleanings?

    Hi there @antonio55,

    That the Forums are with you!  I understand that you are looking for advice on how to clean your screen.  I'm happy to give you a helping hand with this.

    Please see: HP monitors - Safety and Maintenance Guidelines, under the heading "Cleaning the monitor" for details of cleaning, but be sure to read both safety related information.  Depending on what you mean by "halos" try following the instructions for the materials to be used. If you have in the past used something on the list of cleaning products do not turn out to serve, you may have already damaged a part of the screen.

    Please let me know if it works for you and if it does not solve your problem, please mark this message as a solution. Bravo would be appreciated as well.

  • How to clean the screen of my laptop Trubrite?

    Any suggestions on how to clean the screen of my laptop Trubrite? He had a lot of ideas in the web, but none of them were convincing enough?

    For my LCD to computer, I bought liquid cleaning screen and I use it with a non fluffy cloth.
    It s a perfect ;) combination

  • How to split the screen of my mac book

    How to split the screen of my Macbook?

    There may be a solution on how to split the screen into two (halves) for independent display

    through the use of third-party software options. I haven't tried everything, but have read of some who can work.

    Such a "solution party' appears in the Mac App Store; See the second link to the manufacturer.

    https://iTunes.Apple.com/us/app/split-screen/id453757310?MT=12

    • Split screen - Mac app for windows (approximately $7 USD) display management

    http://www.splitscreenapp.com/

    There may be others, beware of questionable sources, as they may contain others? content.

    This may work on a Mac, not a portable desktop computer:

    • Apple introduced mode split for the apps full screen on a Mac in OS X El Capitan - 9to5Mac.com:

    http://9to5Mac.com/2015/06/08/Mac-split-screen-multitasking/

    In any case...

    Good luck & happy computing!

    under the direction

  • How to replace the screen & HDD in Tecra S1

    Could someone help me with 2 queries?
    1. how to replace the screen? I broke my screen 15 "and have a replacement original but would like to know if this is possible without the help of the reseller, etc.
    2. bad drive c. message is 992 KB bad clusters. How to replace or repair the C drive?
    Thank you
    BL

    Hello

    Well, the replacement of HARD disk drive is very easy on the Tecra S1.
    At the bottom of the unit, you will find a cover that protects the HARD drive Bay.
    A screw covers. Remove it.
    Then, it should be possible to remove the HARD drive.

    The replacement of the screen is another matter. It is not easy to remove it. In this case I recommend to contact Toshiba service in your country for details.

  • Equium A60: How to clean the screen

    Hi... using equium A60 for 4 years.
    There are fingerprints and marks on my screen for a long time, I tried to wipe with a cloth dampened in water, to my surprise, that would leave more big brands then before. Brands are not visible when the system is running IE screen is turned on, but clearly visible when the system is off.

    Can someone suggest me please how to clean the screen at home.

    Thank you verymuch...

    Hello

    Each computer dealer provides some products own display interesting and useful.
    You can use a lint cloth and a special spray to clean the screen.

    Would you recommend to visit your laptop & computer dealer following and ask these vaporizers

  • Satellite L30 - 11 d - how to exchange the screen?

    Hello

    I need help to change the screen on a Satellite L30 - 11 d. I accidentally pressed the screen that has a large black spot on him.

    Everything can show me how to change the screen with a new one please?

    Hello

    Unfortunately, you won't find manuals or on the pages of Toshiba disassembly instructions.
    I think that these instructions are made for service technicians only and are not for public use

    In any case, I think there is a lot of information on the internet and I think if you really need this info, then you should google a bit.
    But once again; It s always best to ask a technician for aid of the disassembly procedure is complicated and there is a high risk of damage this part.
    In the worst cases, damage another essential element which would be too expensive.

  • display HP 7 voice tab broken, unfortunately. tab is under warranty... How to replace the screen

    display HP 7 voice tab broken, unfortunately. tab is under warranty... How to replace the screen

    HP India never have bad service. I hv order three books "hp 15-ac026tx" before five days for the company. Distributior open boxes. But at the time of installation pilot not single manager of the graphics card, 2 GB. As a Distributor, realized with the support of Hp, they said that the engineer will soon be at your place. But still no one came. And im going to cancel this order and will prefer another compony.

  • How to determine the amount of memory shipped on the PXI-5114

    How to determine the amount of memory onboard, I have on my PXI-5114?

    Thanks in advance.

    Hello

    I'm sorry I didn't know you already had the map.  There is a property for NO-Scope node to determine the total amount of available memory that we can then divide down to get the memory available per channel.  Please see the vi and help below:

    This gives a shot, just drop it in a VI that you use and if it should return your memory cards.  If you don't have a LabVIEW I can probably retrieve the purchased version by querying your serial number.

    Kind regards

    Kyle S

  • How to determine the amount of memory was my pci-6115?

    How to determine the amount of memory was my pci-6115?

    I see two beaches of memory OR max.

    My PCI-6115 there 32 or 64 MB memory?

    Range of memory between 1: FE9F7000-FE9F7FFF

    Range of memory between 2: FE9F7800-FE9F8FFF

    It's an old part number for the Board 32 MB.

    -Christina

  • How to determine the number of highlight ' to write ' for DAQmx generate analog output?

    On the configuration of the stage for DAQmx generate analog output, there is a field "value to write.  I can't find any explanation for what it is, how it determines the value to enter, nor what he writes.  I am trying to go through the tutorials and it cling.

    Someone would give an explanation?

    Hello

    To write value specifies the value to write in the channels, lines or ports selected in string parameters. In other words, this value will be the value of your DC output (for example if you enter 5, your output will be 5V). To get information on different fields in SignalExpress, access help"context-sensitive help. A pane will appear in your work environment that displays the coordinates of the field when you place your pointer over them.

    For new users of SignalExpress:

    Generation of DC signals with NI DAQmx devices: step in the DAQmx build, select 1 sample (on request) in the generation Mode dropdown. You can select a programmatic input to generate, or you can remove the check mark from the check box use programmatic input and specify a value for generating in the field of value to write . NOR-DAQmx help also provides additional information about the data generation.

    Best regards

    M Ali

    Technical sales engineer

    National Instruments

  • How to determine the index of an item in a cluster?

    I have a small program that I put in place, as I'm just trying to get up to speed on Labview.  I have a boolean cluster buttons and for some reason the top button of the page is coming through as Index 3.  There are four buttons in the cluster, but for some reason, there has been a change.  The top must be Index 0.  How to do the things fixed?  I do not see how to determine the index of each button through properties.

    Thank you

    The order of items in a cluster is the same as the order that you added them. To change the order, just right click and select "rearrange controls in the group. If you use Unbundle by name, you don't care the order.

Maybe you are looking for