BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-13-2009, 08:15 AM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Model: 7100T
PIN: N/A
Carrier: Airtel
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Application compatability across BB devices

Please Login to Remove!

Hi,

I have created an application and tested on the BB Curve device. It is working fine, but when I loaded the same application on BB Bold, I encountered following problems:

1) On Bold the UI was not occupying the full drawable area available
2) The alignment of the UI elements within the screen went heywire
3) Some of the UI components were looking weired eg. DropDown(Combo box). On curve it was looking good, but on Bold the size of the dropdown changed.

Please give me your valuable suggestions and comments on how to create a cross compatible application which can be used uniformly across different BB device. The application should be able to detect the device specifics and automatically adjust itself based on the available resolution and drawable area.

The attached is the snapshot of the UI from the simulator from both Curve and Bold BB device.

Thanks in advance.

Rgds,
AKS
Attached Images
File Type: png Blackberry.PNG (33.3 KB, 9 views)
Offline  
Old 05-13-2009, 08:17 AM   #2 (permalink)
BBF Moderator
 
akosnitzky's Avatar
 
Join Date: Jul 2005
Location: Southern Florida
Model: 9650
OS: 6.0.0.333
Carrier: Verizon BIS
Posts: 14,484
Post Thanks: 6
Thanked 7 Times in 7 Posts
Default

Wirelessly posted (Its All About the U!)

Which curve? 83xx run on 4.5, while the Bold runs on 4.6
__________________
------
Follow @akosnitzky on Twitter

LET'S GO CANES!
Offline  
Old 05-13-2009, 08:23 AM   #3 (permalink)
New Member
 
Join Date: Apr 2009
Model: 7100T
PIN: N/A
Carrier: Airtel
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by akosnitzky View Post
Wirelessly posted (Its All About the U!)

Which curve? 83xx run on 4.5, while the Bold runs on 4.6
I'm using JDE 4.5 for app development.
Offline  
Old 05-13-2009, 09:00 AM   #4 (permalink)
New Member
 
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: rogers
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The screen resolutions are different between Curve and Bold:

Storm 9530 = 480 x 360
Bold 9000 = 480 x 320
Curve = 320 x 240
8800 = 320 x 240
8700 = 320 x 240
Pearl = 240 x 260

You either need to use a preprocessor to flag code for different devices if you are using bitmaps, and use differing sizes of bitmaps, or you could use SVG which is a vector graphic format - there is a couple of examples in the JDE samples, you can get the screen sizes with a signed method Display.getHeight() and Display.getWidth()...
Another option is to use a layout manager - there are a few examples in this forum for that.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.