BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 01-13-2011, 06:49 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2010
Model: 8300
PIN: N/A
Carrier: T-Mobile
Posts: 62
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default How to detect the BlackBerry model and screen size from a program ?

Please Login to Remove!

I would like my program to detect the BlackBerry model as well as the screen dimensions like height , width etc at run time

Would that be possible ?
Offline  
Old 01-13-2011, 08:51 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: How to detect the BlackBerry model and screen size from a program ?

DeviceInfo.getDeviceName() will give you the model.

Display.getHeight() and Display.getWidth() will give you the display size.
Offline  
The Following User Says Thank You to Dougsg38p For This Useful Post:
MobileDeveloperUK (01-13-2011)
Old 01-13-2011, 11:48 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2010
Model: 8300
PIN: N/A
Carrier: T-Mobile
Posts: 62
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: How to detect the BlackBerry model and screen size from a program ?

Cool !! Thanks a lot !!
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

Similar Threads for: How to detect the BlackBerry model and screen size from a program ?
Thread Thread Starter Forum Replies Last Post
HOWTO: Use BlackBerry on Generic NON-BlackBerry Data Plan Mark Rejhon BlackBerry Network 92 03-08-2014 12:26 PM
Setup up Eclipse for BlackBerry development plevintampabay Developer Forum 40 01-11-2012 01:15 AM
Latest Operating System Available For Each Blackberry Device jungleland RIM Software 143 11-03-2008 09:28 PM
HOWTO: Opera Mini 4 - Make it Better than BB Browser! Mark Rejhon Aftermarket Software 51 01-13-2008 07:12 PM
BlackBerry Myths Busted! The Modern 2005-Era BlackBerry (for Palm/PocketPC users) Mark Rejhon General BlackBerry Discussion 24 02-07-2006 08:15 PM





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