Myself shweta dodiya.I am facing problem with nokia N97 related to change orientation for my game application. I am using J2me technology.I want to pause my application when i open my slider.
Thanks in advance
Myself shweta dodiya.I am facing problem with nokia N97 related to change orientation for my game application. I am using J2me technology.I want to pause my application when i open my slider.
Thanks in advance
Copyright © 2021 Jogjafile Inc.
I don't know what code are you using, or are you using Canvas to draw the game on screen, or some other API that does that for you...
If you have something like this
GameScreen extends Canvasand you useGameScreenobject to draw and display the game, you need to add an override tosizeChangedmethod to it and check the new width (w) and the new height (h) of the GameScreen, and do the things you want in regards to that:This is a simple pseudo code, I hope you are getting the point. If statement is checking the relation between new width and the new height. If the phone is in landscape mode, H is less then W...