BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-30-2008, 06:32 AM   #1 (permalink)
Thumbs Must Hurt
 
baran_khan's Avatar
 
Join Date: Apr 2008
Model: 9500
PIN: N/A
Carrier: Airtel
Posts: 110
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Resolution Specific Application

Please Login to Remove!

Hi,

This is particularly new concept for me, I was wondering if anyone can provide me basics about how we can create an application resolution specific. Let's say I create an application having different images for different blackberry resolutions, and the application pics the right theme depending upon the device it is running on...any guesses?
__________________
Smart People ask for Help!!!
Offline  
Old 08-30-2008, 07:01 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2008
Model: 8300
PIN: N/A
Carrier: O2
Posts: 17
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

1 way is to create all the different images and compile different versions of the app depending on the screen resolution and then specify which version of the app gets applied to which BB model in the alx file for the installer to decide which to use.

The other is to have all the images in 1 version of the app and check in the program what resolution the screen is using Display.getWidth() and getHeight() and decide which image to use based on those values.
Offline  
Old 08-30-2008, 07:20 AM   #3 (permalink)
Thumbs Must Hurt
 
baran_khan's Avatar
 
Join Date: Apr 2008
Model: 9500
PIN: N/A
Carrier: Airtel
Posts: 110
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ilh3- View Post
1 way is to create all the different images and compile different versions of the app depending on the screen resolution and then specify which version of the app gets applied to which BB model in the alx file for the installer to decide which to use.

The other is to have all the images in 1 version of the app and check in the program what resolution the screen is using Display.getWidth() and getHeight() and decide which image to use based on those values.
Hey, thanks for the reply, I guess second version would be a feasible way, could you please elaborate what exactly we mean in the first point when you said "mentioning in alx file", do you mean we get different setups of same application?
__________________
Smart People ask for Help!!!
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.