Determine the orientation of a device

Hi, I've seen tutorials on the internet where people use navigator.landscapeOrientation inside a resize handler, check the orientation of a device. Who does more then, how can I check the direction now?

I need this work as soon as a view is created, for example from the creationComplete Manager. It should also work for iOS devices and iPad. Thanks for your help.

Ignore this, the use of FlexGlobals.topLevelApplication.aspectRatio to find the guidance works very well.

Tags: Flex

Similar Questions

  • Determine the presence of a device

    Y at - it a simple method to test for the presence of a device?  I have a chassis 9172 that I sometimes forget to put on for my mistakes of LabVIEW VI on the first time he's trying to do something with the material (and I need to resart the VI and re-enter the selections of GUI ).

    I would like to find a nice simple way to test to make sure the cassis is connected to the PC and turned on and if it does not give a not so subtle remicer to do before the real test of the code portion.

    Any ideas?

    You can look at this thread. Also, what kind of communication do you have in your application now? What devices you expect to be there? I have to assume that your applications run if the chassis is running. So you knew the equipment that connect you with now. Any request for State of the any of these devices does not suffice for you to determine if the chassis is here or not. If you can connect and get an answer, you're good to go. If this isn't the case, you must create a user switch on the chasis, connect or other problem.

    For your application, you can use an architecture of producer/consumer or a state machine which would allow you to stay in the initialization state before continuing, if you cannot communicate with the device.

  • I can determine the amount of traffic to/from my Internet connection through my Airport due to each connected device (both wireless and Ethernet)?

    My traffic internet, as reported by my ISP, has increased significantly in the past few months and I would like to determine where this increase. Devices that potentially connect via my Airport are:

    Wireless:-2 iPad, 2 iPhones, iPods, MacBook Pro

    Ethernet:-desktop HP, Swann CCTV security system.

    Unfortunately, airport routers provide no information on the use of the data of the connected devices, or the product itself.

    I'm not aware of a 3rd party application that would do exactly what you want... but someone else may know, and if all goes well they after.

  • Programmatically determine the PCI device ID

    Hello again all you lovers forum useful!

    I am writing an application for exit to and read entry from ARINC PCI card, specifically the ICAN-530 of GE Intelligent Platforms.  Now their LabVIEW drivers and the documentation is pretty good, but one of the things that I have a problem with is how to determine the ID of the Board of Directors.

    The documentation on this Board ID is marked "for PCI devices, this Council number must match the device ID assigned when the installation of the API and the corresponding device has been installed."  I'm sure that I have discovered this using MAX, but what I really want is to determine if the laptop running my application has this card special in it ARINC and if so what is its device ID, by any program without the user to select or install MAX, etc.

    I hope it's doable, but I failed to find the right screw looking through this forum and in the pallets of LabVIEW.  If someone could point me in the right direction (or definitely state that it can be done programmatically), I would be very grateful.  :-)

    Thanks in advance!

    -Joe

    Just in case where someone else finds this useful thread in the future, I got the following response from GE Intelligent Platforms (who I bought the card), that indicates there will be a relatively simple way to reach my goal by using the LabVIEW drivers.  I have not tried so I can't guarantee its effectiveness, but it sounds good.  :-)

    If the only GE avionics installed is the ICAN-530, he would have no problem invoking AR_Board_Init until you encounter a status of passage; However, if there are other cards installed AND the distribution of the CIS - x 30 - SW is installed on this host, there is a mechanism to check room types.

    The AR_Query_Device of VI VI provided in CIS - LV Version 4.10 (latest version and probably the one would have received you if purchased with the ICAN-530), can be used in the following sequence to check such allocation device number on your system without actually opening a session and during the initialization of the Council.

    (1) call AR_LoadDLL.vi with the set control system Type to be 'CIS - x 30'.

    (2) call AR_Query_Device.vi in a loop (BoardIDIn control incrementing from 0 to 15) until the indicator of Type of card is returned in 26 (type for ICAN-530) AND the errorOut.code '1 '.  The BoardIDOut indicator will be the Deviceid for the ICAN-530.  Council for the VI types are described in the online documentation and printed for CIS - LV live.

    (3) If you will be running your application, you can just go forward on the basis of the VI AR_LoadSlv and waive AR_Board_Init (as AR_Board_Init is just a combination of AR_LoadDLL and AR_LoadSlv).

    (4) If you plan on using it to work with any other type of Council other than a CIS - x 30 Board, you must call AR_UnloadDll.vi to remove the library API CIS - x 30 memory.

  • Definition of the orientation of the device

    Hello

    How do you define the orientation of the device in PlayBook?

    If I try it is the only direction I can use (landscape left, all others interrupt the program):

    CCDirector::sharedDirector()->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
    

    You can set in the descriptor bar if you only set a direction for your application.

      true
      landscape
    

    See you soon,.

    Jon

  • How to determine the type of device programmatically

    Hello

    I think I need determine the type of device (IE. Bold, Curve etc.) in order to use the appropriate images.  I can't find a api that indicates to which device the application runs on... could someone point me in the right direction?

    In addition, is the type of device, the best way to do it... or use the width of the display or resolution and choosing him the appropriate icon a better idea?

    Thank you

    check the DeviceInfo class.

    I use the screen resolution to determine the size of the icons. I use two sets of icons, one for the kid, one for big screens.

  • Determine the device model

    Hey,.

    I just have a small question. I am developing an application and I want to assure the compatibility of some models (eg. 9550, 9530, 9700 (a). Is there a way to determine the version of the OS and the Version of the model of its blackberry through the JDE access?

    Use the DeviceInfo class.  DeviceInfo.getPlatformVersion () to get the BONES and the getDevicename() to get the model of the device

    HTH

  • I signed up for photography CC, loaded on laptop main, when installing on my ASUS Transformer to only LR5.7 not CRD.  Determine the latest version that a device can run install?

    I signed up for photography CC, loaded on laptop main, when installing on my ASUS Transformer to only LR5.7 not CRD.  Determine the latest version that a device can run install?

    Yes.

  • Reactive projects displayed the incorrect content due to the orientation of the tablet.

    In a sensitive project, how Captivate to determine which view should display on the type of device? For example, should I use pixels in width or device type?

    We had problems of design for tablets because when the Tablet is held in a landscape position, the main display is shown. When the device is held in portrait position, the Tablet is displayed. Because some tablets are higher resolution than desktop computers, how do we ensure that the view of the Tablet is displayed regardless of the orientation of the Tablet?

    This is by design: landscape on tablets show see first breakpoint, Portrait shows the tablet display.

    It is not the resolution of the Tablet, but the browser which is important. You can find them on viewportsizes.com. You will see that, although many smartphones have very high resolution, browser resolution is very low.

  • a trick to find the drivers for "unknown devices".

    I see a lot of messages on the forum in which users try to find the drivers for "unknown devices" in the Device Manager.  That's how I usually go on the search for drivers for these users.  I thought that the community, this may be useful.

    I use a site called pilot identifier.  However, I do NOT use the stand-alone application.  I'm NOT suggesting that do you.  I have not used the app, so I can't speak to its usefulness.

    I use the site to determine exactly what is the material element.  To do this, the site doesn't have a search function, I use a updated Google search the.  I will now give the steps with examples.

    First of all, you need the hardware ID for your hardware.  To locate this information, follow these steps.

    1. Click Start, type "Device Manager" and press ENTER.
    2. Look for the device that needs a driver.
    3. Right click on the device and select Properties.
    4. Go to the tab "Details".
    5. Select hardware ID from the drop-down.

    Here is an example of a hardware ID:

    HDAUDIO\FUNC_01 & VEN_10EC & DEV_0662 & SUBSYS_103C3047 & REV_1001.

    I then use this Hardware ID and Google to determine what the hardware item by searching for the use of the site: modifier for Google.  So, my research looks like this

    "site:www.driveridentifier.com .

    HDAUDIO\FUNC_01 & VEN_10EC & DEV_0662 & SUBSYS_103C3047 & REV_1001.

    When I go to the first result, it will be, in general, identify the material at the top of the page.  Here is the page for my research above.   The page identifies audio material like "realtek high definition", which is correct because it's the hardware for my sound card ID.

    Now, on this page if you scroll down it gives you a list of all OEM drivers for this piece of hardware.  However, you cannot download the drivers from them without having to install their software.  What I do is so, note the name of the driver for HP.  In this case, you will see that she is named "sp59642.exe".

    Because I can not download the driver from the website, or even be directly connected to HP's Support site from there, I still use Google.

    This time, I use a search of "sp59642.exe" in Google, which returns this page as the first result.

    I can't always find the executables that are listed by pilot identifier.  For example, I can't locate sp59660 or sp59662 who are both on the same list.  So it may take a few tries to find a driver, but I had some success using this method.

    I hope the community finds this useful tip.  Have a great week everyone!

  • When I wear the watch on my left wrist and Iset the orientation of the digital Crown for the side LEFT it also stops receiving notifications? I tested it again and again, but if the digital Crown is set to left on left wrist ir stops receiving notificatio

    When I wear the watch on my left wrist and I set the orientation of the digital Crown also for the side LEFT, he ceases to receive notifications, I tested it again and again, as soon as counsel for the Attorney general setting is left on the left wrist... notifications stops on the watch?

    Hello

    How notifications behave depends on the State of your devices and on the configuration of your watch. In order to provide notifications to your attention as soon as possible:

    -If your iPhone is unlocked, you will receive notifications on your iPhone instead of on your watch.

    -If your iPhone is locked or asleep and that your watch is unlocked and on your wrist, you will receive notifications on your watch.

    -If your watch is locked or allowed to do not disturb, notifications will be sent to your iPhone.

    More information: on your Apple Watch - Apple Support notifications

  • How to use NIDAQmx to determine the number of lines correlated DIO?

    How can I used NIDAQmx to determine the number of correlated DIO lines that supports a device?  For example, the NI6225 supports 8 correlated digital of/s lines while the NI6229 supports 16 correlated digital of/s lines.  How can I used NIDAQmx to determine the NI6225 supports only 8 lines while the NI6229 supports 16 lines?

    I moved this question from a previous thread.

    Thank you

    Ian

    Here is a code snippet that implements the regular expression detection:

  • 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

  • Determine the number of traditional DAQ hardware using Labview.

    Hello

    Anyone can answer the question:

    Regarding materials traditional DAQ, for example the DMM OR-4060, how

    can I programmatically determine the number of device which can be seen in MAX?

    With the help of Labview 8.5, I looked into the following function libraries:

    NOR-DMM

    VISA

    NOR-ModInst

    None of the libraries above seem to provide access the number of traditional DAQ hardware

    property, which is automatically assigned.

    Background:

    I have a 18 PXI chassis containing 2 DMM, in housing 3 and 14.

    The DMM may be a mixture of type OR-4060 or NOR-4070.

    The system is controlled by a Teststand sequence employing IVI - DMM

    steps.

    When you set the IVI logical name step, I am referring to IVI device defined Sessions

    Max - rutime determined.

    Labview VISA functions using I can determine the model, i.e. 4060 or 4070.

    Because the DMM just locate into the slots 3 or 14, then the devices NOR-4070

    are accessible using the following descriptors of resources: PXI1Slot3 or

    PXISlot14.

    (The 4070 is compatible DAQmX.)

    So for devices OR-4070, I can predefine 2 Sessions of IVI device, knowing

    It will be sufficient for all occasions, when I run my Teststand sequence, which will be

    determine what device session to use at run time.

    But I'm stuck for the NOR-4060.

    At the Session of the device, I have to give a descriptor of resource the following

    format: DAQ::x (where x is the device number)

    I could create device 18 sessions each reference to a different DAQ::x, but to select

    the good pair during execution, I would need to programmatically determine the device

    number, i.e. the value of x.

    Where my question.

    The closest I came to a solution was an entry of the Knowledge Base that said that the

    Assigned device number would be the same as the slot number, providing the

    Number of the device had not previously configured manually.

    Unfortunately, our device numbers have been changed manually and maybe in the future.

    All popular solutions.

    Gary.

    Hi Gary,.

    Good afternoon and I hope that your well today.

    Thanks for your post and I want to help you solve your problems.

    I don't think there is just a function that you can use to identify and collect information on all cards with your. For traditional DAQ devices in particular I suggest using the Information.vi of DAQ devices get.

    If you look at this link,

    SAL posted an example VI entitled, find dev trad.vi.

    You can get information such as serial number, Dev name and the Base address.

    The assistance of the respective drivers to collect information you could generate an array of strings with the information that you need all the slots.

    Please let me know if this is useful at all,

  • How to determine the USB 2.0 ports on the machine.

    Original title: Usb 2.0 Ports.

    My Device Manager lists 8 Usb ports, including Usb 2.0 2.  How can I determine which ports are 2.0?

    Hello

    To determine the USB (Universal Serial Bus) 2.0 port, you can connect any USB device to each port & check in Device Manager at the same time to check which of the 8 USB 2.0 ports.

    Hope the helps of information.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • Thread of mail IOS10

    I prefer how IOS9 mail works, no Adviser how to select a thread without developing all the emails to the right?

  • Satellite L20-196 - updates to the Atheros WLAN driver

    As may relative novice, I ask why Toshiba have updated the version of the driver (Windows XP) wireless lan Atheros three times in the last two months? The last update 25/05/11. It would not be because it's still a beta version and it would be better

  • isolate the imposing of the event

    I'm controlling a valve using my serial port that sends a signal to turh in clockwise or counterclockwise. To reduce the CPU usage I put this in a structure of the event so that the signal is sent only once as opposed to each iteration, which now wor

  • 8.1 Windows installation

    I intend to install Windows 8.1 on my laptop 2312ax to G6. My laptop is still under warranty. I can't install 8.1 without any warranty issue?

  • LELA, Win XP SP3 & WRT300N

    When I upgraded to Win XP SP3 LELA stopped working properly.  I tried to reinstall LELA, but she won't recognize just is no longer the router.  I have a WRT300N and were using LELA version 1.6.0033 up to this point.  Y at - it another version of LELA