Building for all resolutions and the OS app

Hi all

a very strong issue for me: I want my application to support a lot of existing resolutions and operating systems, from 4.6 to 6.0. I know how to write this code, so my headache lies in another field - compatibility. Typical problems and pitfalls one may face? It's a way to write * secure * code that works both touch and non touch devices smoothly?

Some APIs are available only in the newer versions, some are deprecated. For example, now I use "navigationClick" to manage both trackball and touch events, and it works fine. What other functions handle that you know will work for sure on touch and non touch devices?

Yes, 4.6 and 4.7 + need to the different versions, not so much because of the new API, but because 4.7 devices set lower versions in a ugly compatibility mode.

I have much experience with coding special touch features that I have them never required in my applications. I've implemented workaround found a colleague-based features:

You can detect a touch device using canvas.

public static final boolean IS_TOUCHDEVICE = new Canvas() {}
protected void paint (Graphics graphics) {}
}
}. hasPointerEvents().

based on this value I double the size of some input fields, so people with sausage instead of fingers can manage the

As there are a lot of resolutions and new devices bring even more I would never consider to create a version by resolution, it would never end!
a possible solution would be to create an additional library that contains only the graphics for a resolution, but it depends on your application if saved space would be worth for the extra complexity (and the cost of the added support).

Tags: BlackBerry Developers

Similar Questions

  • How to get back my data for the health and the watch Apps once I've restored my phone?

    How to get back my data for the health and the watch Apps once I've restored my phone?

    From the backup, you're going to be restoration.

    If you back up to iTunes, make sure that it is an encrypted backup.

  • Error "have sufficient privileges to complete this installation for all users of the machine. "log on as an administrator and try again the installation" when you try to install iTunes

    Original title:

    I just installed windows7, I had to uninstall itunes in order to complete the instalation of windows7. everything went well until I tried to reinstall itunes.

    During this process, I get the message "you don't have sufficient privileges to complete this installation for all users of the machine. log on as an administrator and try this installation again. ». but I am logged on as administrator.

    Hello

    To resolve this problem, use the following methods. After completing the steps in each method, check to see if the issue is resolved before you go to the next method. If the problem is resolved by any method, you do not have to use other methods.

    Method 1:

    Right click on the installer for iTunes and click Run as administrator.

    Method 2:

    Disable user account control settings and check.

    Enable or disable the User Account Control

    Note: User Account Control (UAC) can help prevent your computer from unauthorized changes. UAC notifies you when changes will be made to your computer that require administrator-level permissions. Disabling it can make your compromised computer. Please make sure that enable you UAC, once you have completed troubleshooting.

    Method 3:

    Allow the default Administrator and try to install it in this user account.

    a.Click on Start, click principally made programs, Accessories, right-click on command prompt and select run as administrator.

    b.Type in the following command and press ENTER.

    NET user administrator / active: yes

    c.Log disable the current user account and log in to the user called Administrator account.

    d.Install iTunes in this default Administrator account.

    e.Once of that installation is complete, the default administrator is disconnected.

    f. log in to your user account.

    g.Disable the default Administrator account. Follow these steps.

    i.Click on Start, click principally made programs, Accessories, right-click on command prompt and select run as administrator.

    II. type the following command and press ENTER.

    NET user administrator / active: No.

  • HI, I can buy an extra App and that it is used by 2 different people on 1 account at once? The apps are PS en ID. So the first person will use ID all day and the other uses ID all day?

    HI, I can buy an extra App and that it is used by 2 different people on 1 account at once? The apps are PS en ID. So the first person will use ID all day and the other uses ID all day? and this account a 1

    Hello

    Please see licenses and terms of use | Adobe

    License Adobe CC can be activated on 2 machines using the same Adobe ID, but can be used alone at the same time.

    Kind regards

    Sheena

  • How the AutoComplete feature of fork for all browsers and application

    Hello

    I want to feature Turn off AutoComplete on form fields. This should work for all browsers, and I would like to first of all that as a global property for the entire application.

    I've found autocomplete = "off" property for the input field. But:

    1.) it does not work for Mozilla
    2.) how I set this property for all the fields in my application in one step.

    Thank you

    Martin

    Hello

    1. well, it's a Microsoft extension (see: [http://msdn.microsoft.com/en-us/library/ms533486 (vs.85) .aspx])

    2. you can disable AutoComplete for a FORM tag (which, presumably, disables it for all elements in the form entry). Try adding the following immediately below #FORM_CLOSE # on your page template:

    <script type="text/javascript">
    document.forms[0].autocomplete="off";
    </script>
    

    Andy

  • is possible to config that allows a rule of subscrat for all signatures in the IPS?

    Hello.

    is possible to config that allows a rule of subscrat for all signatures in the IPS?

    Thnks

    Sent by Cisco Support technique iPad App

    Yes, in the case of the action filter configuration configure the signature, victim's IP address range and action to subtract.

  • How to add legend for all images in the indesign document using indesign javscript

    I want to add the legend for all images in the indesign document...

    It's my code... im being of error like:

    invalid parameter.

    capset(2) ();

    function capset()

    {

    var doc = app.activeDocument;

    var myPicture = doc.allGraphics;

    var f, i, myCaption;

    While (PIC = myPicture.pop ())

    {

    f = pic.geometricBounds;

    Add a frame to the parent of the image, which is a Page

    myCaption = pic.parent.textFrames.add ();

    define the position and size of the legend

    myCaption.geometricBounds = [[2], [1], [2] Go + 3 GB [3]];

    Add the contents of the placeholder

    myCaption.contents = "Caption";

    PIC.parent.groups.Add ([pic, myCaption]);

    }

    }

    Hello

    Runing a code with your doc that you note possible occurrences (groups, the elements anchored, locked, etc items)

    This presupposes to exclude grouped and docked:

    capset ();
    
    function capset()
    {
    var
      mDoc = app.activeDocument,
      // anchored or grouped items excluded
      myGraphics = mDoc.splineItems.everyItem().getElements(),
      picContainer, gb, myCaption;
    while(picContainer = myGraphics.pop() )
    {
      // exclude empty frames
      if (!picContainer.graphics.length) continue;
      gb= picContainer.geometricBounds;
      // add a frame to to picture's parent, which is a Page
      myCaption = picContainer.parent.textFrames.add ();
      // set position and size of the caption
      myCaption.geometricBounds = [gb[2], gb[1], gb[2]+3, gb[3]];
      // add placeholder contents
      myCaption.contents = "Caption";
      mDoc.groups.add ([picContainer, myCaption]);
      }
    }
    

    Jarek

  • Satellite L300-PSLB8E - screen becomes all white and the laptop freezes

    Hello

    I have a Toshiba Satellite L300 PSLB8E. I initially bought with Windows Vista already installed on it. After a few years, I changed the operating system Windows 7 Ultimate. I installed the display and all the other necessary drivers (that is, sound, network, etc.).

    After I installed Windows 7, when I use the laptop for a while, the screen becomes all white and the laptop hangs. This happens spontaneously. Sometimes, in less than 10 minutes and other times that it can work perfectly for hours. I checked for loose batteries and other components, but everything seems fine.

    Physical damage only that there is a tiny crack on the screen in the bottom right of the screen. The operating system is not good? If I put windows Vista back as it was?

    Please advise and help understand me what the problem is with the laptop.

    Until we start discussion can you tell me what you do when this happen?
    Hard stop and restart?
    Is everything OK again when you do?

    It is not easy to say what exactly is the problem, but I put t think there is problem with OS and preinstalled display driver. A long time ago I installed Win7 Home Premium on friends L300 and it works perfectly.

    What you can try is to use the external monitor for a while and see if everything works well. If so, there is no problem with the operating system, drivers or graphics card. It may be that the display problem.

  • When I use the library function node call in real time, is loaded only once for all or load the DLL whenever it is called?

    When I use the library function node call in real time, is loaded only once for all or load the DLL every time when it is called?

    I have a critical application in real time, in which I use a piece of DLL function developed in C++.  It is ok?  Make sure any senior developer?

    Thank you in advance.

    The user interface thread is the thread that is used to update the user interface. It's slow. And it's supposed to be that way because humans are slow.

    The call library function node can be configured as this thread to use in the configuration for it dialog box. Please visit the LabVIEW documentation on how to do this.

  • The administrator password for all computers on the network does not work for ONE of the computers on the network

    original title: the computers of network/administrator password

    The administrator password for all computers on the network does not work for ONE of the computers on the network. I need to log on as an administrator to install software, but the password does not work. It works on other computers, but not this one. How is this possible and how can it be solved?

    Hello
    Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features. For more information about this policy, please refer to the below sticky

    http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/3eba3150-8742-4264-be9f-0daaad2282cd

  • When using my computer, all applications and the windows are closed at the same time, got disconnected and the computer turns off as if someone stops manually.

    Original title: it's a virus that's causing this?

    It happened a few times now. While I use my computer, all applications and the windows are closed at the same time, I am disconnected and the computer is off, as if someone manually stops the computer. I turn on the computer and log in and everything seems to be okay. No data deleted, not that I could find and detect anyway. One day when I turned on the computer, it run chkdsk before doing the usual startup. I use the computer for 2 years and this is the first time, she never did a chkdsk on its own. I used Microsoft Essentials and no viruses were found.

    Should I worry?

    Hello

    You can read the following article and try to download the Microsoft Safety Scanner and perform a full scan on your computer and check.

    Microsoft safety scanner

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Check if there are logs of events related to the issue in the event viewer which may help us to solve the problem of the:

    What are the information contained in the logs of the event (Event Viewer)?

  • How to unlock DEP; Window grey DEP balls; Want To «Turn On DEP for all programs» and Services except those I select

    Under Start, computer, properties, advanced, Control Panel, performance, settings, Data Execution Prevention (DEP)...  The functions of ball in gray and it seems that DEP is locked.  Yet one can disable DEP using bcdedit.exe that MS wrote a short article on how to do it.  I would like to use this select method rather then disable DEP on the entire machine.

    Someone knows how to fix this 'feature '?  Thank you.

    Open in administrator cmd

    If the DEP is grayed out then try this: this RUN cmd

    Activation:

    bcdedit.exe/set {current} nx AlwaysOn
    bcdedit.exe/set {current} nx optin

    To turn off:

    bcdedit.exe/set {current} nx AlwaysOff

    To turn on DEP for all programs and services except those I select.

    Click Add to add the programs (32-bit) that you do not want to use the DEP feature. Navigate to the .exe file of the program you want to add to the DEP exclusion list and select it, and then click Open.Click OK to apply.

    10. restart the computer to apply the changes

  • HOW TO MAKE ICONS FOR ALL FILES AND FOLDERS IN LARGE WINDOW 7

    HOW TO MAKE ICONS FOR ALL FILES AND FOLDERS IN LARGE WINDOW 7

    You can try this: -.

    Start-> Control Panel-> display
    From there, you can select medium or large. This will be the size of everything on the screen.
  • View the name of the person who got pay MAX() of all employees and the amount of salary without the aid of a subquery

    The table is the table of the sample already provided to the user 'hr' to oracle. The structure of the table is:

    NameNull valueType

    --------------                        -------- ------------

    EMPLOYEE_IDNUMBER (6) NOT NULL
    FIRST NAMEVARCHAR2 (20)
    LAST_NAMEVARCHAR2 (25) NOT NULL
    E-mailVARCHAR2 (25) NOT NULL
    PHONE_NUMBERVARCHAR2 (20)
    HIRE_DATEDATE NOT NULL
    JOB_IDVARCHAR2 (10) NOT NULL
    SALARYNUMBER (8.2)
    COMMISSION_PCTNUMBER (2.2)
    MANAGER_IDNUMBER (6)
    DEPARTMENT_IDNUMBER 4

    So I wanted the result to display the 'FIRST_NAME' of the person with the maximum salary of all employees and the salary of this person "Max (Salary)".

    I had the answer to the following query:

    Select first_name, salaries of employees

    where wages (select max (salary) of employees);

    But I wanted to know if there was another way to get the results without using subqueries? Thanks for your help. Appreciate it.

    Use the DUNGEON:

    Max (first_name) SELECT first_name from Dungeon (dense_rank last order of salary).

    Max (salary) salary

    of hr.employees

    /

    FIRST NAME SALARY
    -------------------- ----------
    Steven 24000

    SQL >

    SY.

  • Hello. Where can I get documentation for HP Capture and the road? As a user/administrator's guide?

    Hello. Where can I get documentation for HP Capture and the road? As a user/administrator's guide? I recently installed a trial version, but he did not come all documentation.

    little late? ;-)

    Seems many is research. Look at

    http://h20000.www2.HP.com/bizsupport/TechSupport/DocumentIndex.jsp?ContentType=SupportManual&lang=en&cc=us&docIndexId=64179&TaskID=135&prodTypeId=457757&prodSeriesId=5260445

Maybe you are looking for