Display.getWidth () and Display.getHeight () does not

I have added two variables public static int in the main class (large public static Sub and I initialize these variables in the class as Main() constructor):

w = Display.GetWidth ();

h = Display.GetHeight ();

I have no error, but when I try to use these variables of a class of the screen, it returns 0 (the original values are - 1). I don't know what is happening.

Thanks for your help.

I'm going to do some experiments to see if I can reproduce this. I don't think that this should happen. But I would recommend this place anyway:

Add (new LabelField ("w =" + Display.getWidth () + "h =" + Display.getHeight ()));

Who should have the desired behavior.

Tags: BlackBerry Developers

Similar Questions

  • Hello. There is a problem on the IPhone s 5 - after reset, the display flashes on the sides for 10 minutes, then the flashing stops. And the problem does not appear again until they do not use a Hard Reset (Power Home). The phone is new (5 days). It's a m

    Hello. There is a problem on the IPhone s 5 - after reset, the display flashes on the sides for 10 minutes, then the flashing stops. And the problem does not appear again until they do not use a Hard Reset (Power + Home).

    The phone is new (5 days). It's a wedding?

    If you encounter this flicker, then the next troubleshooting step is to restore from a backup. If the behavior persists after the restore, then the last step is the factory restore. If after the factory restore and adding no additional content, you see always this problem, then you must make an appointment at the Genius Bar to the nearest Apple store or service provider authorized Apple to have the material examined. If the behavior goes after the factory restore, then sync again your content manually, without using the backup. It seems to me it's corrupted content in the backup.

    Restore your device from an iCloud or iTunes backup - Apple Support

    Use iTunes to restore your iPhone, iPad or iPod settings - Apple Support

  • Search programs and files does not work: when I try to look for things in windows 7 slot search files and program it does not display anything

    When I try to look for things in windows 7 slot search files and program it does not display anything

    Help

    Hi girls NMS.

    Try to run the next Fixit:

    Fix Windows Search when it crashes or shows no results

  • Conditional display - obviously does not work and I do not know why!

    I have a few buttons and conditional display makes me mental

    I put a very simple condition in as value of element in the expression 1 = zero

    then, in the expression 1 set P82_DUPLICATE

    then run the P82_DUPLICATE page element is clearly 0 and the button does not appear

    Help me!! its driving me crazy

    Thank you very much

    Chris

    Chris

    At the bottom of the page when logged in as a developer, you should have a number of links which is 'Session' - this will display a pop-up of the current values of the items in session state.

    If the page is not submitted then the value may still not there. If you need to dynamically work without submitting the page then you will need to use AJAX.

    Please check it for me and I should be able to help.

    See you soon

    Ben

  • Re: Satellite A65-S1067 - display driver does not work

    As stated in my title, the display (ATI Radeon 7000 IGP) on my Toshiba laptop driver does not work and has not worked for quite a while.

    Whenever I try to play a game that is to install a game (like World of Warcraft or Civilization III) it does not work because it says that my display driver does not work.

    Can someone help me with this?

    Hello!

    You use the factory settings on your laptop computer or you have installed your own version of Windows?
    And have you tried to update the driver? I put t know what OS you use, but the Toshiba site, you can search for a new driver.
    http://www.CSD.Toshiba.com

    And have you tried to update the version of DirectX? You can find on the Microsoft Web site.

    Sorry, but at the moment I can t tell more.

    Good bye

  • Display Manager does not start after Satellite A210-117 wakes up from his sleep

    Hello

    I have some difficulty with a Satellite A210-117 PSAELE-00E00MFR. I installed W7 x 64 professional and display driver ATI Catalyst to Radeon HD 2400.

    My graphics card appears in Device Manager as an ATI Mobility Radeon HD 2400 with the current version of the driver 8.970.100.3000 from AMD, and I can't find a better.

    So far, so good, but as soon as W7 goes into 'sleep' or 'hybrid sleep', the display manager does not re - start correctly. He keeps trying to display Windows, but finally the phone re boots.
    But if I put the laptop to 'Hibernate', then he wakes up fine.

    I don't know if this problem is known, because I can't find anything on the Internet on this subject independently to obtain the latest driver. Anyone an idea how to solve this problem?

    Thanks in advance

    Concerning
    Eric

    Post edited by: ebouge

    Hello

    On the page of the Toshiba UE driver (Archive), you will find drivers for Win 7 32 bit A210.
    Driver ATI 8.452 - 080109 is available too.
    Its a previous version and I recommend to test the unit by using this version of the driver

  • CSS style for the display text (does not save the State)

    Hello

    I just upgraded from APEX to APEX 3.1 3.0 and display text (does not save the State) which I had set to display more by adding style = "color: #658bb1;" font-size: 25; "the field of HTML table attributes for the element.

    Since the upgrade, that has been lacking in the font size of the body (12 PT) and I can't seem to be larger.

    I tried to use attribute selectors - span [class = display_only] {color: #658bb1; font-size: 25px;}, but this only works in Firefox.

    Can anyone help please.

    Thanks in advance

    Graham.

    Hi Graham,

    I can't see your post exactly what you did!

    I tried your style here: [http://htmldb.oracle.com/pls/otn/f?p=33642:176] and it seems to work ok in IE and FF

    As part of header HTML of my page, I add:

    <style type="text/css">
    .display_only {color: #658bb1; font-size:25px;}
    </style>
    

    Andy

  • Windows 10. installed iTunes version 12.4.0.119. I have several iTunes libraries. On most of them display-&gt; ' display as ' does not show the grid option. A library of fact.  It's all music, with no video media. By default seems to be a list that is unc

    Windows 10. installed iTunes version 12.4.0.119. I have several iTunes libraries. On most of them display-> ' display as ' does not show the grid option. A library of fact.  It's all music, with no video media. By default seems to be a list that is unchangeable.

    Select the sidebar if hidden. View options > view as may depend on which of the options for the song, artist, album, etc. are selected in the sidebar.

    TT2

  • The plus sign next to my tab stopped working: when I click on it nothing happens. I tried uninstalling and reinstalling and it still does not work.

    The sign + to add a new tab has suddenly stopped to work earlier. I tried uninstalling and reinstalling and it still does not work. What can happen and how to fix it?

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • HP Officejet Pro 8600: Recently a fax pops up when I try to print photos and the picture does not print

    We have a printer all-in-one HP Officejet Pro 8600 operating from a desktop HP with Windows 7. Recently, in the last two weeks my wife told me, we cannot print photos. The documents appear to be printed without a problem, but when trying to print a photo we get a window titled 'Send Fax - HP Officejet Pro 8600'. We have never used or even hung fax capablitly since we have owned this printer (maybe 2-3 years). All of a sudden, this window is displayed when we try to print a photo and the photo does not print.  I can't tell you that my wife did not hit accidentally a wrong button somewhere down the line, but she says she does not. I tried to attach a screenshot of the window, but for some reason that it does not take it. It's probably something very simple, but technically challenged myself, I can't understand. Help, please.

    Thank you

    Vince Pellerito

    Print picture of what program?  Some programs to keep their own default values for the printer.  It seems that the default printer for the printing of the photo program has been set to Fax.  Try to open the program, select the Officejet Pro 8600 as the printer rather than the Officejet Pro 8600 fax.

  • T410 doesn't start, white screen and the keyboard does not power on.

    Hi, my laptop Lenovo T410 does not start. I hit the power button and looks like it is about to start. The thinklight flashes on as normal, the cd drive is checked, the caps lock on, then nothing/button blinks. No display and the keyboard does not respond. Power led lights up; If I leave it awhile the fan turns on. Can I stop the machine using the power button, but the problem remains the next time I turn it on.

    I tried to remove power and battery, power 10 button time then with the power to 30 seconds, before replacing the power supply and the battery but nothing happens. I tried to use a different keyboard. I tried to plug in an external monitor. No change.

    This problem appeared after I left it on overnight. I have the feeling that it entered into hybernation mode, perhaps, and that it disturbed some important functions which he could not complete. Not sure if. Any help gratefully received.

    Thank you very much

    Pete

    It's the original configuration of your laptop:

    ThinkPad T410 2522BF1
    i5 - 520 M (2.4 GHz), 4 GB RAM, 160 GB 7200 RPM HD, 14.1 in. LCD 1280 x 800, Intel 5700MHD, DVD, Intel 802.11agn Wireless Modem, 1 Gb Ethernet, UltraNav smart, secure, camera, 6 c Li-ion, Win7 Pro 32

    I firstly the LCD cable or secondary LED could be damaged, but if you don't see anything on an external monitor I tend to think it's a motherboard problem.

    Last thing you could try putting running a Live Distro Linux from a CD/DVD or USB drive, using Ubuntu or Linux Mint, for example.

  • code 511 undetected fan and the fan does not turn or unraced where do replacement or is this question solfware

    code 511 undetected fan and the fan does not turn or did not run where do replacement or this question solfware please help

    [Moved from the community centre of Participation]

    Fan errors are usually hardware problems. There is a fan in the case including detector does not detect that it is available or spinning. This could be a problem with the real fan or the fan sensor.

    Does this have to do with? Are you talking about an error that is displayed by a Windows machine? If so, what version of Windows? When the error take? At boot time? Before or after that Windows allows you to open a session? When you provide no details, it is almost impossible for anyone to help.

  • I have my black getit monitor and the computer does not respound after 2 mnts when I start playing games online

    I have my black getit monitor and the computer does not respound after 2 mnts when I start playing games online

    Hello

    1. what operating system is installed on the computer?
    2. what web browser are you using to play the games online?
    3. don't you make changes to the computer before the show?

    If you use Internet Explorer, then I suggest you to try the steps from the following link:

    The problems of games online using Internet Explorer
    http://support.Microsoft.com/kb/2528246

    Additional information:

    Why my screen is black when I start Windows 7?
    http://Windows.Microsoft.com/en-us/Windows7/why-is-my-screen-black-when-i-start-Windows-7

    Solve game problems
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-game-problems

    The problems of the game performance
    http://Windows.Microsoft.com/en-us/Windows-Vista/fixing-game-performance-problems

    Troubleshoot display with Microsoft games
    http://support.Microsoft.com/kb/263039

  • 0x802d007 WinUpdate and BIT error does not work - nothing is fixing.

    0x802d007 WinUpdate and BIT error does not work - nothing is fixing.

    Hello

    (1) what is the exact error code that you get?

    (2) service pack you have installed for XP?

    Method 1: Verify that the services are started
    Make sure that BITS and the automatic updates service are started. To do this, follow these steps:1.Click Start, click Run, type services.msc, and then click OK.
    2. in the list of services, click on automatic updates, and then click Properties.
    3. in the startup type list, click Automatic, and then click on apply.
    4. If the service status is stopped, click Start, and then click OK.
    5.right - click Background Intelligent Transfer Service, and then click Properties.
    6. in the startup type list, click Manual, and then click on apply.
    7. If the service status is stopped, click Start, and then click OK.
    Method 2: You receive an error message "Windows Update has encountered an error and cannot display the requested page" when you try to install an update
    Method 3: You cannot install updates from Windows Update, Microsoft Update, or by using the auto update after a repair of Windows XP after installing Windows XP SP3 immediately after a clean installation of Windows XP SP2 or

    For reference:
    How to troubleshoot a service that crashes in Windows XP
    http://support.Microsoft.com/kb/934650
    How to resolve problems connecting to Windows Update or Microsoft Update
    http://support.Microsoft.com/kb/818018
    Method 4: How to reset Windows Update components?
    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
    322756 (http://support.microsoft.com/kb/322756/)
     
    Note: You may need the XP disc for some functions in the steps above.
    I hope this helps!
  • Internet and the sound does not work after the ATU Vista 64-bit

    I really didn't want to display in the hope I would find the answer using Google, as I did in the past, but this one i can not find the answer for.   2 days ago I d/l a program called Advanced System Care. I was told by 3 of my friends it works well to clean your junk files, Defragging ect ect.

    After d/l and the operation of the program, I had to leave and shut down the system. Today I start everything is fine, and then I noticed that I have a red X on my speakers. This is not the red X you get when cut there a smaller lower-right next to the speaker in the toolbar. When I mouse over it, it says "Service Audio work not" when I click it to repair, so good it shows all is working (volume mixer control is non-interactive) then I go to control panel and click on the speaker and I get "this computer cannot play audio because the windows audio service is not enabled.»   You want to enable "I click Yes and it brings back me just in the region, that I was when I clicked on the small speaker in the toolbar with the red x.»  Everything always looks the same as it was when I put in place.

    Is there anything else I can look?

    Second problem happened at the same time.  I have the same red x on my 2 computer screen in the toolbar on the bottom right. When I try to repair it it says this "this service cannot be started because it is disabled or because it has no enabled devices associated ' when I go to Device Manager and check to see if it is still showing my d-link wireless there is black! on a yellow background. When I try to access the computer to find local internet connections, it says that it can't find. I know that my Linksys is working because my Iphone is connected.  I already tried to install a cord between my router and my system and it still does not notice the internet even when you try to reconfigure.

    I read where I can make a dirty windows vista installation and fix it. but I really hope that there is a better way.  I also tried to restore my computer to last week when I made a back up and it seems after the use of this program, that he got rid of that as well. So now im out with to be able to roll back before I D/L this close program useless lol

    I'm using Vista ult 64 bit, that the computer is built for gaming and music. OCed Q6600 to 3.2 4gig ram 8800gt 2 in sli on a configuration card XFX mother if any other system or other questions please do not hesitate to ask.  I hope that someone has had this problem and can help me to solve it.  I don't want to reformat my HD or what I really want to pay Microsoft to talk to them on the phone

    Thanks for your help

    After 3 hours on the phone with the microsoft problem solved. Seems some how using CSA and the update of microsoft it limited my computer to start all programs at startup.

Maybe you are looking for