Set the simulator mode at startup landscape

Hi all

I need to develop an application that works only in landscape mode. When I try to open the app in the simulator by default, it opens in portrrait mode, when simulate it by using the tiltberry and then change of scenery is good, as it rearranges.

I just want to use my application in landscape mode only. I tried with setAllowableDirections but no help. any other ideas?

Hey have u tried this

UiEngineInstance ui = Ui.getUiEngineInstance();
ui.setAcceptableDirections(Display.DIRECTION_LANDSCAPE);

If you run this until you press any screen in the battery, it should do the trick.

Tags: BlackBerry Developers

Similar Questions

  • Satellite M70-159: how to set the APM mode on the HARD drive?

    Hello.
    I have Toshiba M70-159 and I have problem with my HARD drive. My power to drive (FUJITSU MHV2060BH) down from 2 to 5 min... I put in Toshiba Power Saver "Never."
    I now read http://www.fel.fujitsu.com/support/disk/manuals/m60_product_manual.pdf and I see maybe APM I put.
    How can I configure Mode APM?

    1.11 advanced Power Management (APM)

    The hard disk automatically switches to the mode according to energy saving the
    setting the APM mode under the inactive state.
    The APM mode can be selected with a number of sector register of ALL
    Control FEATURES (EF).
    The disk complies with the three types of modes of the APM which a command
    from the host is necessary.
    EN = 05 h: enable APM
    SC = C0h - FEh: Mode-0 Active Idle? Idle low power
    SC = 80 h - BFh: Mode-1 idle assets? Low power idle (default)
    SC = 01 h - 7Fh: Mode-2 inactive assets? Low power idling? Standby
    EN = 85 h: disable APM (Game Mode-0)
    Active Idle: The head is in a position of extreme inner disc
    Middle. (VCM Lock)
    Overview of the unit
    1-14-C141-E224
    Low power Idle: the head is unloaded the disc.
    The spindle motor.
    Standby: the motor stops.
    In Mode APM-1, which is the default APM mode, operational status moves until it
    Finally reached "low power idle."
    Table 1.7 Advanced Power Management
    APM mode
    Idle assets
    (VCM Lock)
    Idle low power
    (Unloading)
    Standby
    (Spin-off)
    Mode-0 0.2 to 1.2 s min. 15 s/o
    Mode-1 0.1 to 0.2 sec 10.0 - dry 27.5 n/a
    2 mode 0, 1-0, 2 s 10.0 - dry dry 27.5 10.0 - 40, 0
    When was the maximum period during which the hard disk waiting for orders
    exceeded:
    Mode 0: Mode shifts affection Active Active Idle in 0.2 to 1.2 and low
    Inactive power in 15 minutes.
    Mode-1: Active status to Active Idle mode in 0.1 to 0.2 seconds and
    low power idle in 10.0 - 27, 5 seconds.
    Mode 2: Active status to Active Idle mode in 0.1 to 0.2 seconds and
    low power idle in 10.0 - 27, 5 seconds. After 10, 0-40, 0 seconds in
    Low power idle mode goes into sleep mode.
    Note:
    The default values for these settings are reflected in the values of WORD 91 of the
    Command IDENTIFIER. In addition, APM mode is initialized with the Mode-1
    (the default) to power off.
    The above mentioned is time until the transition to each mode of power based on the point
    that the reader becomes a State of waiting for order.

    How can I set Mode APM to disable EN = 85 h: disable the APM (Set Mode-0)

    Where do I put? Please help me.

    Hello

    You can use either the Toshiba Power Saver that controls also the APM mode or you will remove him this tool and then you will use the Windows power management.
    Here, you can change the settings for the APM mode.
    Unfortunately the other options to disable the APM Mode are not known to me.

  • BlackBerry smartphone how to set the Auto Mode bedside when loading?

    Hi guys,.

    As the topic. How to set the Auto Mode bedside when loading? Because this option, it does not exist in the clock menu options and I think that it was there before I did the upgrade.

    Thanks in advance

    9000 "BOLD"

    Worm: 9000M_PBr4.6.0_rel508_PL4.0.0.243_A4.6.0.297_AT_amp_T

    CTS network provider

    solved thanks to you all,.

  • set the optimizer mode for mapping

    How can I set the the optimizer mode (for example, "all_rows") explicitly for a mapping?

    ~ Prabha

    Hello

    in the design center, select "configure" in the context menu of a mapping. Under operators table, select a table, and then set the indicator of extraction.

    Kind regards
    Carsten.

  • How to set the simulated on material values simulated?

    I simulate the material using the Software NI MAX.
    I would like to access the material simulated using the interface in ANSI C.
    But I want to get the values.

    How it is possible to adjust the simulated values?

    You can not. The only value of simulation is the wave sinusoidal, as explained in the help.

  • set the affinity automatically at startup of the program?

    Hello..

    I play a lot of older games. but we would like to keep my computer up-to-date.

    I am running win7 Ultimate 64.

    and am using an amd 64 x 2 5000 +.

    StarCraft is an older game that often results in a computer system completely lock unless you set the processor 0 afinity every time before starting a game.

    It is a pain to do whenever you launch your game...

    y at - it a method or program that I can use to define starcraft to processor 0 automatically when I start so I don't have to do it manually every time?

    Hello

    This should work if the start in the folder on the shortcut is set in the proper folder.

    c:\windows\system32\cmd.exe /C start /affinity StarCraft.exe

    Alternatively, make sure that the specified path is correct.

    Did you do as I said in the last post.

    Go to the folder where StarCraft.exe

    Create a shortcut

    Change the target line as needed.

    (The start on file, above the target line should be the folder where StarCraft.exe.)

    Or make the bat file.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Rogers Treo680 - set the wrong date at startup

    Recently, I found that the date on my Treo680 is wrong. It seems to happen after the time / date is defined by the Rogers network - the correct setting appears when I restart the unit, but a few seconds later, the time and date of the change. I just tried again and saw the following:

    1 palm OS starts.

    2 phone connects to the network and the Date & time page, telling me that the network will be set the time.

    3 date and time appear: April 22, 01:27

    4 after a short delay, I hear the traffic between the phone and Rogers and the time is reset to April 21, 01:24.

    The phone is running Palm OS 5.4.9

    set the time manually, do not use locaL network time...

  • Satellite A210-14 is not set the economy mode when I close energy

    Hi guys,.

    I own a Satellite A210-14. Sometimes when I close my laptop is not in power saving mode and when I open it again the screen is black and the only thing I can do then is to turn off completely and it reboot. Do you know anything to do there? I know that this is not a specific problem satellite, there is a lot of laptops that seem to have this problem but still I was wondering if you knew any help.

    Thank you very much in advance!

    Firehawk

    Tried the suggestion as update of the BIOS, update the display, update Vista driver, etc. in other bids?

  • API to set the auto-run at startup

    From an application, it is possible to change programmically whether app should be Autorun at startup feature or not (is there any api)? Or is the only way to apply for automatic execution at startup by modifying project settings?

    You can control the autostart property in the project settings. See "Auto Run at startup"

    There is no way to change this programmatically, once together, but you can always choose to ignore the call system of your app, right?

    See the following article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Confi...

  • Unable to set the "exclusive mode" in vmware workstation 8

    I installed VMware Workstation 8, but when I click on "View-> exclusive mode" full screen, nothing happened. Someone else has experienced this problem or there are some workarounds to solve?

    Well, I think that I am able to reproduce your problem.  Thanks for reporting this.  To work around the problem, you can go in Edition > Preferences > display and uncheck the box ' Edge see the toolbar when this marking in fullscreen.  This is to prevent the toolbar full screen to reappear in exclusive mode when you move the mouse to the top of the screen.  I think that the toolbar will also become well hidden if you pin the toolbar before entering full-screen mode.

  • Automatic, set the priority mode

    Hi my name is hils and to be honest, I am somewhat of a technophobe. I joined in the hope that other users may help you with some of the problems I am having with my z3 compact experia.
    For the moment, my problem seems for whatever... the phone attaches priority only and it keeps receive me calls unless I remember to check. Is it possible that I can cancel this and save the settings of regular use. Hope someone can explain to me in simple terms.

    Let's see if we can put simple. I think you may have changed in smart connect application events.

    Try the following: go to settings - do scroll down to apps - drag left to all - scroll down to chip to connect. Tap on this issue, force stop, erase the data. Restart the device and check again.

  • How to: set the mode of the page?

    Hi anyone knows how to use javascript to set the screen mode normal or preview page?

    Thank you.

    app.activeDocument.layoutWindows [0] .screenMode = ScreenModeOptions.PREVIEW_OFF;
    app.activeDocument.layoutWindows [0] .screenMode = ScreenModeOptions.PREVIEW_TO_PAGE;

  • SDK can not connect to the Simulator in VMware

    My operating system: Windows 7 64-bit

    SDK version: 10.0.9; Build id: v201212072306

    VMware Player Version: 5.0.1 build-894247

    Video card: NVIDIA GTX 560 Ti

    I'm trying to use the simulator of 10 BlackBerry, running in VMware Player, to test applications under development in the native BlackBerry SDK. However, when I try to run these applications from the SDK and connect to the Simulator, I see that even though (I think) I got the correctly configured IP address for the target, it is still listed as "Not connected" in the list of Options of the target (I don't know if this is normal or not). Then, if I try to launch the project in any case, I get the following error message:

    "Unable to connect. Make sure USB cable or Wi - Fi is connected, the IP address is correct, and the mode of development. »

    Sorry if I didn't explain very clearly, this is very new to me, and I still have trouble getting my head around it. I'm sure there is probably some information that I forgot to include in this post, but I will provide if I think that whatever it is.

    I have been looking for solutions to the question, but it seems that there could be many possible causes, so I thought it would be better to make a new thread specifically for my situation. I tried the following:

    -Check that the development Mode has been activated (it seems that it has been enabled by default)

    -Ping I thought several times, was the IP address of the command line simulator (sometimes I had to meet with success, but not at the beginning)
    -Disabling Windows Firewall
    -Running a .bat file with 'ipconfig/release; ipconfig / renew. ipconfig/flushdns ".
    -I check the correct target for the Simulator IP address (double-check this confuses me a little, but I think I can find it in "Settings"-> "About" simulation-> 'Network' menu?)
    -Temporarily disable Avast! antivirus software to check if she is interfering
    -Verification of VMware Windows were running (I think he installed four of them in total)
    -Uninstall (then reboot) and reinstall the SDK, Simulator and VMware and restarting, repeatedly

    -Windows asked to troubleshoot the connection of VMnet8 of VMware; He said DHCP must be enabled, but then failed to do this for me (this left me confused; I wasn't sure if it was important or not)

    -Passage of the NAT VMware Bridged mode for the simulator mode, then the connectivity test (it doesn't seem to help, and the "About"-> page 'Network' in the simulation was empty), then power back up

    Any help or any what pointers to additional information, I would give, would be greatly appreciated. Thank you!

    EDIT: I also cant seem to get QML previews to work at all. I don't know if it is related to my other question, but I thought it might be worth mentioning, and this is something else I would try to fix, if possible. I tried to update my drivers, but to no avail.

    Solution found! I just tried to add a target in the software development kit using the IP address on 'Settings' of the Simulator-> "About"-> "Network" screen, but the target has been filtered out of the list, unless I unchecked "target filter based on the selection of C/C++ applications". If I unchecked, the target has been classified as ' 192.168.31.128 (Neutrino / x 86) ', but the Run button was grayed out when I chose it and I noticed the error message, ' binary Selected target do not match x 86 "at the top of the window." I have googled this error message and found the following (quite old) thread:

    http://supportforums.BlackBerry.com/T5/native-development/QNX-IDE-target-selected-binary-and-target-...

    After reading through and testing, it turns out that all I had to do was change the active configuration in the drop-down list at the top of the window SDK 'Device-Debug' for 'Simulator-Debug", little"hammer"that I needed to build to the Simulator and not a real physical BlackBerry device. Here is a quote from the post of cdamus, which is where I found the solution:

    "A little trick to streamline your workflow: prospects for development C/C++ has a little"hammer"toolbar of action that you can pull down (click on the black triangle next to it) to define and build the active configuration in one step, for one or several projects."  The icon to the right (it looks a bit like a sundial) defines the active configuration, but is not build. »

    I took a screenshot to help indicate the setting that I need to use:

    Hope this helps you chuma and anyone else who has this problem. Thanks for the tip, cdamus!

  • Can not set the print properties

    Just loaded FireFox 4.0.1
    When I click on
    file
    print
    and the print window opens if I click
    Properties to define the quality or black etc. only I get
    an error box that says:
    Error
    Prop Res DLL not loaded

    I tried exactly the same thing using Windows internet explore and the Word for windows, and these all are working
    perfectly. I can click Properties in the print window and
    the value of what I want on my printer.

    I rebooted and no help.

    I'm about to go back to the previous version of Firefox
    Since I print a lot of websites and I often
    you want to set the print mode project to save time and ink.

    Can you offer any suggestions other than coming back
    the earlier version?
    Thank you!
    KyDan
    Louisville KY

    This seems to be a problem for a long time with the Lexmark printers who has just started to happen in Firefox 4.

    An example

    http://forums.techarena.in/MS-Office-support/596409.htm

    This Google search.

    Check out this thread for support for a solution that has worked in 2006 for a similar problem with another Lexmark printer. I hope that something like this will work for you.

  • Cannot change the Compatibility Mode

    I'm trying to run an application on a new Windows 7 PC.  It works fine with no special settings on a Windows 7 PC identical (same model number, same OS, same OS updates).  But on the second machine Windows does not allow me to change the compatibility mode to Windows 7.  He insists on locking myself in other compatibility modes and greys and then the selection to return to Windows 7.  Worse, whenever I run the program I have to answer the nattering question "do you want the next request to make changes to this computer?  -Yes!  No matter what!  just, let me alone and run the application!

    (1) how do stop this Moguls and force Windows 7 leaves me alone and run the application?

    (2) how set the compatibility mode to Windows 7 (or eliminate the comaptibility altogther mode) for this application?

    I've uninstalled and reinstalled the app several times with no luck.

    Yes, lowering the UAC slider leaves your pc more reports unprotected, which was why I mentioned only use it as an experienced user (.. .knowing your way around your pc...)

    This problem only occurs with the .exe in question btw?

    You can still work around a problem in the registry. I found this (below) on several sites. Before you begin, I STRONGLY suggest that you make a backup of the registry . How? Type regedit in the search bar in the startmenu, then press on enter, confirm the UAC, click file-> export, choose a file name and choose where you want to save the exported .reg file, select (dot) all under Export range option, type a name for the .reg file and click on the Save button.
    ! The registry is not a place for fun if you know exactly what you are doing. You will have to pay dearly if something goes wrong!
    You can access the registry by typing regedit in the search bar in Startmenu, but you probably already know.
    ___________________________________________________________________________________________________________________________________

    All settings in the Compatibility tab can be set through the registry

    -Open REGEDIT
    -goto "HKEY_CURRENT_USER\Software\Microsoft\WindowsNT\CurrentVersion\AppCompatFlags\Layers".
    -create a new string value
    -name or rename the full path asked for example "C:\Program Explorer\iexplore.exe may.
    -Right click on the new channel and select Edit
    -type RUNASADMIN in line with value data; This will rank the program to run as administrator.
    This allows you to bypass the graphical mode of editing the parameters. Instead, you change the registry settings. And of course, you can ignore the advances
    The shortcut properties. Better start the program by default
    Administrator mode! : o ;)

    I used it for Internet Explorer (iexplore.exe) which is part of the
    System.

    A shortcut on the desktop can be configured to run as administrative mode.
    But, if I run the IE7 browser, leave a link URL or Favorite, that this doesn't
    work and Windows Vista it will run in User Mode... UNLESS I CHANGED
    THESE OPTIONS WITH REGEDIT. To start regedit click on Start Menu, then
    "Run...". "type REGEDIT. EXE or REGEDIT.

    Other Options and examples .
    Always in the key called a HKEY_CURRENT_USER\Software\Microsoft\Windows
    NT\CurrentVersion\AppCompatFlags\Layers you can add more variables:

    RUNASADMIN: I just said, run as administrator of the program
    : rolleyes:;
    256COLOR: run the program in 256 colors;
    640 x 480: Add this value to run a game or another application in a lower
    RES;
    DISABLETHEMES: to disable visual themes Windows 4 adds that the app;
    DISABLEDWM: Disabled Desktop Composition;

    HIGHDPIAWARE: Disable the display timing of ppp settings high;

    ELEVATECREATEPROCESS: I don't know, unknown function. : confused:

    VALUES of COMPATIBILITY (not use'em together, only by app!):
    Win95: Add the Windows 95 compatibility mode;
    Win98: Add Windows Me or 98 compatibility mode;
    NT4SP5: Mode NT 4.0 Service Pack 5 Com;
    Win2000: Tap to add compatibility mode Windows 2 K;
    WINXPSP2: Windows XP Service Pack 2 Compatibility Mode;
    WINSRV03SP1: Windows Server 2003 SP 1 com mode

    Windows also creates these chains of the option when you change the compatibility
    Settings in the properties of the selected executable (graphics mode is not
    Regedit mode).

    Found on: Forums.techarena
    ____________________________________________________________________________

    REGEDIT IS AWESOME, BUT USE IT AT YOUR OWN RISK! Start with a registrybackup!

    Good luck and we keep informed please!
    Error. Not found on keyboard. Press F1 to continue...

Maybe you are looking for