File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Dyanmic Screen Resolution in J2ME" Watch "Dyanmic Screen Resolution in J2ME" New topic

Dyanmic Screen Resolution in J2ME

murtaza amravatiwala

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

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:
subject: Dyanmic Screen Resolution in J2ME
It's not a secret anymore!