title: How to manage screen for Storm device
body: <p>I am working for Blackberry application. In which i need to develop application for 4 kinds of resolution as mentioned below:-</p>
  
  <p>640X480
  480X360
  320X480
  &amp; 
  360X480</p>
  
  <p>I've developed application for 640X480 very first successfully. 
  Then for managing UI for other resolution i created two methods for setting Padding as UI concern. Please have a look over these methods:-</p>
  
  <pre><code> public int scalePX(double i) {
      // TODO Auto-generated method stub
      double ratio = i/640;
      i = Display.getWidth() * ratio;
      return (int)i;
  
  }
  
  public int scalePY(double i) {
      // TODO Auto-generated method stub
      double ratio = i/480;
      i = Display.getHeight() * ratio;
      return (int)i;
  
  
  }
  </code></pre>
  
  <p>As expected it's working perfectly for two other resolution that are Horizontal devices (480X360, 320X480).</p>
  
  <p>But this is not working for [360X480 (Vertical Device)] while it should be. Can anybody explain me why this is not managing this particular device's resolution and what can i do the best now because i wouldn't prefer to code for this resolution separately.</p>
  
  <p>Many Thanks in advance.</p>