IntelliJ Java IDE
The moose likes Java Micro Edition and the fly likes Dyanmic Screen Resolution in J2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply 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
 
IntelliJ Java IDE
 
subject: Dyanmic Screen Resolution in J2ME
 
Threads others viewed
How to retrieve physical info of a cellphone?
Ruler in mm
ExamLab SCJP 5 by Devaka cooray
Screen resolution
Only one question in Devaka's Exam Lab...?
MyEclipse, The Clear Choice