wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes Dyanmic Screen Resolution in J2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Dyanmic Screen Resolution in J2ME" Watch "Dyanmic Screen Resolution in J2ME" New topic
Author

Dyanmic Screen Resolution in J2ME

murtaza amravatiwala
Greenhorn

Joined: Jun 10, 2011
Posts: 1
Hello Everyone!!! I am having tough times solving query on Dynamic Screen Resolution in J2ME. How can you create an application in J2ME that automatically adjusts to the screen resolution to the phone it is being installed. That means if the resolution is small the layout automatically adjusts to the screen resolution and if its bigger then accordingly... Please help....
Srinath Gamage
Ranch Hand

Joined: Jun 19, 2008
Posts: 40

You can get the screen width and height from any implementation of javax.microedition.lcdui.Displayable.
getWidth() , getHeight()

Use this values to re-size images and other resources as nessary


SCJP & SCMAD
http://srinathbugz.blogspot.com/
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
It is also the case that Nokia has proprietary application extensions that allow applications to be scaled up on Nokia phones.

See: How to Change Java Game Resolution
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dyanmic Screen Resolution in J2ME
 
Similar Threads
Only one question in Devaka's Exam Lab...?
Screen resolution
How to retrieve physical info of a cellphone?
ExamLab SCJP 5 by Devaka cooray
Ruler in mm