How to determine if the device supports portrait / landscape views?

Is there an easy way to determine if the screen of the device supports portrait / landscape views?

(We need to provide different settings for the user)

Until recently, we used check similar to the following:

If OS > = "6.0" & AccelerometerSensor.isSupported)

but this code does not work on the new Bold 9900 (which has the accelerometer, but has no landscape mode).

We are looking for a solution that doesn't invlove by manually checking the models...

Thanks in advance!

You can use the DeviceCapability.isRotationSupported method to determine this.  This class has been added in BlackBerry Device Software version 6.0.

Tags: BlackBerry Developers

Similar Questions

  • How tdo I add a device supported in the supplier portal?

    Hello

    'Potential' user of ours sent me an email saying that it was not able to download our application to his BlackBerry "BOLD". He'll be back to me with the exact model number. We support only 4 models of "BOLD" from now (not touch ones).

    In fact, the app will probably work very well on the 9900 new but we just don't have it on our list of supported devices.

    So I have two questions:

    (1) if the user's device is not supported by our application, is it not see it in the App World?

    (2) how can I add a device supported via the provider Portal? I mean no return code. Can I make changes to the list quickly?

    Thanks in advance.

    (1) if the device is not supported, the user should not be able to see the application to all the

    (2) to set the phone support: go to see release (eye-like button), Edit, tab add the Release Version, scroll down, change the device supports, check all the boxes

  • How do you lock the device 10 BB programmatically

    How do you lock the device 10 BB programmatically. Please suggest solutions to achieve this.

    Thanks in advance.

    Hello

    I guess that you are looking for this via the Android Runtime? This is a device that is not currently supported feature.

    See you soon,.

    Matt

  • How to determine whether the current operating system is windows, or MAC?

    How to determine whether the current operating system is windows, or MAC?

    CSparrow wrote:

    operatingSystem var = $.getenv ("OS");

    operatingSystem = operatingSystem.toString ();

    alert (operatingSystem);

    It gives me Windows NT Windows 10

    With the help of:

    alert($.os);
    

    works for me.

    (result: Windows/64 10.0)

    and the Silly-V code

    Folder.FS

    gives you the name of the operating system

  • How can I disable the automatic backup in Photo Viewer?

    I did a clean install of Windows 7 Home Premium. As I looked through some of my pictures, one of them was displayed on the side and I used the 'spin' button to see her standing. As I clicked on the button 'Next', the picture has been saved without any confirmation. I don't want to save changes in the viewer of photos at all, and I have not found any setting for this. How can I disable the automatic backup in Photo Viewer?

    Hello

    Please note the last changes you make on your computer will be automatically saved on your computer and which will be unchanged, unless you change it again on your computer.

    As it is a design, there is nothing we can do from our end.

    If you want to suggest changes in the design here is the link you can make reference to: Microsoft Connect - back products and bug reports. Microsoft...

    https://connect.Microsoft.com/dashboard/Info/

    Thank you, and in what concerns:
    Suresh Kumar-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I change the monitor back to normal view. my screen is on his side. Don't know what I did.

    How can I change the monitor back to normal view?  Some how I turned it on the side.

    Saturday, June 1, 2013 16:21:57 + 0000, ElainePeninger wrote:

    How can I change the monitor back to normal view?  Some how I turned it on the side.

    The ability to rotate the screen image is a characteristic of your video
    card, to help work with instructors who turn to the portrait
    orientation. Almost certainly you accidentally pressed Ctrl-Alt, and
    an arrow key.

    Rotate using these keys.

  • How to determine if the user of the mobile device is looking at a site office?

    Hello


    We have activated the Mobile support for a site.  So now, when a user on a mobile device go to the website they see mobile model.

    The mobile template includes a link to the user to view the full site: < a href = "/ index.html? visitorDeviceClass = desktop" > full view of the Site < /a >

    We want to add a link 'view the Mobile Site"on the Office site but only for users of mobile devices.

    We tried to {{globals.cookie}} and {{globals.visitor}} to see if there is something we can watch (using javascript) to determine if we have a mobile user who visits the site of the office.  But it looks like visitorDeviceClass and deviceClass are set to "desktop" for real desktop users and mobile users who clicked on the link "View Full Site.

    We believe that we could be able to watch her User Agent but do not know what OS is displayed for Windows phones and we are not dependent on not user agent.

    Question:

    Does anyone know of a way for us to determine if a mobile device user look at the desktop version of the site so that we can add a link 'view the Mobile site?

    Thank you

    sepyh

    Hey,.

    You can basically determine the device of the visitor to the site in two ways:

    Hope this helps,

    Mihai

  • How to rename the device support in Windows 7

    original title: how to change the name of the network media device?

    I renamed my laptop used in the registry and also deleted users folder in C: again when I connect the computer on my home network, the old name appears under multimedia device. How to change the old name with a new one on the device of network support? Please advice.

    Thanks in advance,
    Sunil

    Hi Sunil,

    Please report the problem to Microsoft Community.

    According to the description, it looks like you want to change the name of the multimedia device.

    Try these methods and check:

    Method 1:

    Visit the link and see "change the name of your media library""" "

    Change media settings in Windows Media Player streaming

    http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-streaming-media-in-Windows-Media-Player

    Method 2:

    Create a new user account with a new name so that the user name and media devices will be associated with the new name.

    Try to create a new user account

    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

    Additional reference:

    Difficulty of a corrupted user profile

    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

    I hope this helps. If you have questions more related to Windows, feel free to post here at Microsoft Community.

  • How to determine if the sound card on motherboard works?

    How can I determine if I have the card in her ascent to the motherboard is working or not?  My computer is an optiplex260

    A. you hear sounds?

    B. why you think you have an its own card?  As far as I know from the Dell site, the Optiplex GX260 integrated sound (i.e., the sound circuit is part of the motherboard).

    C. Manager devices open (start > run > devmgmt.msc > OK).  Click on the + sign next to "audio, video and game controllers".  Is there a warning symbol (yellow triangle with!) next to one of the entries?  If so,.

    • What entry?
    • Double-click on this entry.  What is all the contents of the box under the heading 'device status '?  What is the mention ' status of the device.
  • Windows 7 cannot install from the cd/dvd-rw LG GH22NS90 player. "the CD/DVD device driver is missing" message is presented. How can I recognize the device?

    Separated from this thread.

    I have the same problem, my Windows email me the error code (19) of register incomplete or...
    I have download the drivers from the web LG.com and he send me, devide cant find.

    I try, I try and without operation = s help to respect? THX

    Hello Hendry,

    Thanks for posting your query in Microsoft Community.

    I understand that you have any questions using the CD/DVD drive in Windows 7 computer. We will certainly help you with the same.

    I would like to know some more information on this issue to help you better.

    1. Are you able to access the other CD/DVD drive in Windows?
    2. You try to install the drivers for any device?
    3. When say "Windows send me error code (19)", you get this error message in Device Manager?

    In the meantime, please follow the below suggestion to solve the problem.

    The error code 19 occurs when data in the registry for the device and its driver were damaged.

    For more information on this error, follow the link below:

    Code 19: Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged

    () Also applies to Windows 7 as well ()

    http://TechNet.Microsoft.com/en-us/library/cc772156 (v = WS.10) .aspx

    Additional information:

    Your CD-ROM or DVD drive is not recognized by Windows or other programs

    http://support.Microsoft.com/kb/314060

    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 the back upward and restore the registriesry, click on the number below to view the article in the Microsoft Knowledge Base:

    Registry backup
    http://Windows.Microsoft.com/en-GB/Windows/back-up-registry#1TC=Windows-7

    I hope this helps. Otherwise, feel free to write us again for more assistance, and we will be happy to help you come.

  • How can I remove the HP Support Assistant of my taskbar icon?

    The point mark icon appears after the last update on my Windows 7 desktop.  How can I get rid of him?

    Right-click on the taskbar, go to toolbars, and then uncheck the HP Support Assistant quick access.

  • How can I find the device driver (DOT4PRT)

    HP printer says miss me the device driver (DOT4PRT) I don't know where to find or how to download.

    HP printer says miss me the device driver (DOT4PRT) I don't know where to find or how to download.

    HP includes a port DOT4 printer with HP printer driver installation.

    You don't really need this (you can use the standard Windows USB port), but it provides a few extra bells and whistles.

    Uninstall and reinstall your HP printer as shown here: Article 1

  • How to determine that the user has purchased an article or not?

    Hello

    Can someone tell me how can I determine if the user has purchased an article or not?

    Until now, I add to the cart and then allow user to pay for this item through Paypal. But now, my goal is to show all these items that the user has already added, but not bought yet.so, whenever user logs in a/c, he can see the item in my cart.

    Please... help me

    This sounds like a question of PayPal, then you will want to check these forums. If you were using in-app purchases of BB, so yes, it has an API to check the previous in-app purchases.

  • How can I call the 'device Email App' with my application

    Hi all

    1. work on the version of BB storm (9500/9530 Simulator) is v4.7.0.75
    2 opportunity BB JDE 4.7
    3. the request is:

    I want to call the 'device Email App' through my application through email-ID.
    How can I do it in a smart way? I mean once I close the email app, should return to my request.

    Thanks in advance
    Ratna

    Have you tried that?

    UiApplication.getUiApplication().invokeLater(new Runnable()
                    {
                        public void run()
                        {
                            Invoke.invokeApplication( Invoke.APP_TYPE_MESSAGES, new MessageArguments(MessageArguments.ARG_NEW,"[email protected]","Test","This is Test"));
                        }
                    });
    
  • How to determine if the rank of the acquired list focus?

    Hi all

    I have ListField with custom reminder.

    When the user change focus by the movement of the navigation, drawListRow() is called several times - for each focus-changed event.

    How can I determine in the method drawListRow() if current rank on the FOCUS_GAINED event?

    I can do that by following the path:

    public void focusChanged( Field field, int eventType )    {        mIsFocusGained = false;
    
            if( eventType == FOCUS_GAINED )        {            mIsFocusGained = true;        }    }
    
     public void drawListRow( ListField listField, Graphics graphics, int index, int y, int width )    {        int rowHeight = listField.getRowHeight();        int selectedIndex = getSelectedIndex();
    
            if( index == selectedIndex && mIsFocusGained )        {            drawHighlightRegion( graphics, HIGHLIGHT_FOCUS, true, 0, y, width, rowHeight );        }---------
    

    But I can do that directly in drawListRow()?

    Thank you

    I expected allows you to change your listener to update as follows:

    if ( eventType == FOCUS_GAINED )
    {
    mIsFocusGained = true;
    }
    else
    if ( eventType == FOCUS_LOST )
    {
    mIsFocusGained = false;
    }
    

    I think you should ignore FOCUS_CHANGED because the listField stil keep focus in these events.

    I'm not clear on what you mean by that:

    "is that a function is to determine/get current theme ceremony?

    I thought you did that with your FocusChange listener?

Maybe you are looking for

  • How can I get Firefox to display the Facebook comments to my blog the Huffington Post?

    I am a blogger for the Huffington Post. They recently moved all comment to Facebook activity, and I see comments from readers via Internet Explorer, but not with Firefox. I would like to know what to do about it? I see a small link that takes me to a

  • Re: RLC

    Hi friends, I designed the RLC circuit using labview. Everything works fine, but still I couldn't see any waveform in the graph XY. m kindly helps solve this problem. For your reference, I have attached my RLC vi. Please take a look and let me you if

  • Outlook Express - mail stuck in Outbox

    I use Outlook express 6.  I try to send a very large E-mail (pic heavy).  The email is stuck in the Outbox.  How do I remove, or he can achieve sending. I just got this error message: The message cannot be sent because its size exceeds the limit of t

  • Definition of router as an access point

    I'm trying to set up a wireless router as an access point for a wired router. The wired network portion is fine and the internet connection works.  The laptop sees the wireless router and can connect to it.  However, the wireless router does not have

  • I can no longer print Quicken reports using the same program for the past five years

    I have used Quicken for years (same version of Quicken and Windows 7 and has never had a year problem print end reports so far.)  Why