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.

Tags: BlackBerry Developers

Similar Questions

  • T410 how to determine the type of chart

    I need a new fan for my T410 (2516-CTO), however, there are two types - integrated graphics and discrete graphics.

    How can I determine which version I have without disassembly?

    Look at the list of parts. The Planar (motherboard) should be integrated or discrete. If this is not the case, the network adapter is listed. 65 Watt adapters go with integrated boards, while 90 watts go with discreet. Here is the link:

    http://support.Lenovo.com/en_US/product-and-parts/partsLookup.page

  • How to determine the type of cell data in Excel file

    I have an Excel standard company file that must be read to determine which tests to run.  I have no control on its format.  I need to be able to tell what the data type is to be able to read using the example of LabView code.  It's a numbers hodge poge and channels.  Some numeric fields are formatted as hexagonal although some are floating point.  It doesn't seem to be a vi that I can call to determine information about the formatting of the cell.  As I remember, the control ActiveX in Windows to access Excel supports only.  I was really hoping to avoid dealing with Active X for Excel control directly.

    Any help/ideas?

    Display in CSV or similar is not an option.

    If you deal directly with Excel, I don't see how move you using Active X.

    MSDN page on the use of the ActiveX

  • How to determine the type of client network adapter

    How can I determine if a client is configured with VMxNet VMxNet 2 (reinforced) and VMxNet3?

    Copy the following just returns VMxNet, Flexible code or E1000 but not the s difference types of adapters VMxNet.

    $networkName = "Network0.

    $net = get-NetworkAdapter - Vm $vm.

    where {$_.NetworkName - eq $networkName}

    $myObj.VMNicType = $net. Type

    Question: What version of ESX / VC / PowerCLI do you use?

    As I just tried this on my ESX vSphere / VC and PowerCli are all v4 update 1 and it works very well for me.

    Get-NetworkAdapter -VM MyVM | Select Name, Type | Format-List
    
    Name : Network adapter 1
    Type : e1000
    
    Name : Network adapter 2
    Type : Vmxnet3
    
    Name : Network adapter 3
    Type : EnhancedVmxnet
    
  • How to determine the type of trace

    Hello

    I use a graph xy with a variable number of plots: line a few plots and multiple xy.

    After tracing, I would like to inspect the data: for this purpose, I thought that scroll the plots using ATTR_FIRST_PLOT and ATTR_NEXT_PLOT.

    Then, using GetPlotAttribute (ATTR_PLOT_YDATA) I thought to get the data sets for analysis - I hope the plot is an xy trace and not a line plot... Unfortunately I have not found an appropriate attribute that I could read to differentiate a line plot and a plot xy - using GetPlotAttribute (ATTR_PLOT_YDATA) on a line plot is not valid and returns an error. (There is no trace of attribute plot type)

    The only thing I could think about using different lines for the tracing types - but in this case the xy plots are dispersion diagrams...

    Tips are welcome...

    There is an attribute of type of terrain without documentation, that you can use. You can't define it, but you can get it.

    You can find it in this list of attributes without papers. In this case, you don't have to worry about disclaimer that in this post, I did. After this public list, we will certainly not belittle one of them in a later version, and this particular attribute is as simple as they come, so you don't have to worry that it is buggy.

    Sorry for the inconvenience.

    Luis

  • How to set the type of device on a node in the CEAP

    I am writing a CEAP plugin that creates a camera in After Effects. The camera must be configured on each node, however, the default seems to be two knots, and I can't find any way to control this is the initial method of AEGP_CreateCameraInComp AEGP_CompSuite6, or after the fact on AEGP_CameraSuite2, which seems to be the obvious place to look.

    I'm looking in the wrong places, or is there really no way to control whether a camera is one or two knots when it was created via a CEAP?

    There are a few things you could do:

    fist, you could use AEGP_SetLayerFlag() with AEGP_LayerFlag_LOOK_AT_POI or AEGP_LayerFlag_AUTO_ORIENT_ROTATION.

    If this does not work, you can always go crazy:

    AEGP_ExecuteScript ("app.project.item (compItem) .layer (camLayerIndex) .autoOrient = AutoOrientType.NO_AUTO_ORIENT");

    :-)

  • How to enable the end user determine the type of sort?

    Helllo all,.

    I use APEX 4.2.2. Oracle 11.2.0.3.

    In a classic Rerpot (line custom model), how to allow the end user to determine the type of sorting?

    I use decoding to select the column that the sort is done, but how to determine: Asc / Desc?

    order by decode(:P2_SORT, 'PRICE', v.PRICE, 'PROP_SIZE', v.PROP_SIZE , 'BEDS' , v.BEDS , 'AREA' , v.AREA) 
    

    Kind regards

    One way may be to use a second element which maintain the sort order. Lets call it P2_ASCDESC.

    Your order by condition might look like this:

    order by decode(:P2_ASCDESC,'ASC', decode(:P2_SORT, 'PRICE', v.PRICE, 'PROP_SIZE', v.PROP_SIZE , 'BEDS' , v.BEDS , 'AREA' , v.AREA), null) asc
            ,decode(:P2_ASCDESC,'DESC', decode(:P2_SORT, 'PRICE', v.PRICE, 'PROP_SIZE', v.PROP_SIZE , 'BEDS' , v.BEDS , 'AREA' , v.AREA), null) desc
    

    I don't like this solution, since you réimplémentez one of the nicer features that apex was already out of the box. Better would be to stick to a classic report template and allow the standard user-defined sort order. Why do you think that you need your own non-standard solution?

  • How can I get the type of device in ESXi5?

    In ESX or ESXi4, use dmicode | grep 'product name'-i to get the type of device. But this command is not found in ESXi5. So, how can I get the type of device in ESXi5? Thank you.

    The dmicode | grep 'product name'-i train ESX4.1 as follows:

    [root@host22 ~]# dmidecode | grep -i "product name"
     Product Name: CN21UPSA  
     Product Name: CN21UPSA

    Try the simple way: "esxcli hardware platform get."

    / Rubeck

  • How do you determine the type and speed of your RAM installed what?

    * Original title: laptop RAM

    How to determine what type and speed of your RAM installed is.

    Gift little Handy dandy named Speccy.

    http://www.Piriform.com/Speccy

    Once completed its display, click on memory

  • [CS2] [VB] How can I determine the type of object to a PageItem?

    I use InDesign CS2 and VBScript

    Loop to the bottom of the PageItems in a Page, I need determine the Type of object (TextFrame, group, GraphicLine... each process) and PageItem accordingly.

    Is there a method/function VBS wiil returns the Type of an object as a string or a value. Or what I need to check the existence/non-existence of a particular property associated with a particular object for this type?

    Alternatively, is there a JavaScript function that will do what I can call VBScript?

    For the record: TypeName is what you need.

    For example, when the cursor is planted in the text return TypeName (Ind.Selection (1)) 'PointInsertion.' When a text block is selected, it returns "TextFrame.

  • 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 what type of USB port that I have on my computer?

    I need to know if my computer will not accept a disk that requires a port USB 3.

    How can I determine the type of USB ports on my computer?

    Thank you

    Yes... but you might encounter power problems if you try to use an external with a USB hub drive unless the hub or the external hard drive has its own power supply.

  • How to get the installed Application timestamp programmatically

    How to get the installed Application timestamp programmatically

    Can you please help me.

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/system/CodeModuleManager.html#...

    I'm sure you could find yourself by reading the API.

  • determine the type of data

    Hi all

    I've got procedure of inserting data in table1 value1 column.
    My need is to determine the type of data entered by the user.
    If the data type is not number user should error.
    How can I make it?

    The easier and more reliable way would be to declare the formal parameter as a number, such as:

    SQL> create procedure p (p_num in number) as
      2  begin
      3     null;
      4  end;
      5  /
    
    Procedure created.
    
    SQL> exec p('a');
    BEGIN p('a'); END;
    
    *
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at line 1
    

    If you cannot do this, or want to be more "user friendly", so the only alternative is to test and trigger an error like:

    SQL> create procedure p (p_str in varchar2) is
      2     l_num number;
      3  begin
      4     l_num := to_number(p_str);
      5  exception
      6     when value_error then
      7        raise_application_error(-20001, 'I know I said it was a string, but I really want a number');
      8  end;
      9  /
    
    Procedure created.
    
    SQL> exec p('a');
    BEGIN p('a'); END;
    *
    ERROR at line 1:
    ORA-20001: I know I said it was a string, but I really want a number
    ORA-06512: at "OPS$ORACLE.P", line 7
    ORA-06512: at line 1
    

    John

  • Determine the Type of connection WiFi

    Hello

    Is it possible in the OS X in order to determine the type of connection (a/b/g/n/ac) current WiFi?

    Thank you

    Option + click on the WiFi symbol in the menu bar.

Maybe you are looking for

  • SmartSheet causes Firefox 29 Crash

    I use SmartSheet to work, but since I have upgraded to Firefox 29, my browser will crash periodically when you work on a SmartSheet. This happens usually when you post a journal, or while scrolling down a sheet. Does anyone out there have the same pr

  • Report Builder 1.0 will not connect to the data source for Reporting SERVICES

    We have a few users who are unable to connect to SSRS on SQL Server 2008 using the Report Builder version 1.0 (We will be updating soon, but it's a slow process, and now users have questions) Instead of disputed for their IDs, they are requested to s

  • I would like to delete the files from recovery

    Hello Until I take my computer to get fixed, I did a complete backup of my files, etc.  Because the computer has not crashed as I thought it might, I needed only to recover the portion of the music from my backup.  I ran the restore files and the com

  • Adding another disk to expand before storage to win 10 install

    I am currently using win 7 pro 64-bit. My C drive is running close to the maximum amount of data storage. I bought another SSD, 2 x the current size. I want to upgrade to Windows 10. 1. can I add the new drive and increase the size of the 'C' startup

  • HA question / VM restart capability

    Hi allI'm doing "VMware HA change the behavior of an individual Virtual Machine"But I can't change the settings of the virtual machine in cluster settings. Is it necessary more than business license?I am running 4.1 and have a license of vsphere ente