This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi On Motorola phones, after setting full screen mode true , when i do screenheight = canvas.getHeight() i get wrong screenheight .. lesser than the actual one.. is there any other way to find the actual screen ht other than hard coding ??
but after overriding that method i'll hv to call it by saying sizechanged(176,220); right?? but this is also like hard coding the values .. i mean for other screen size i'll hv to send different values each time..
and After hard coding the values of width=176 and height = 220 and after fillrect(0,0,width,height); fills the entire screen ..
is there any general way ?? and does this problem occurs because of setting setFullScreenMode(true) ??? [ September 10, 2007: Message edited by: Poonam Gulve ]
Joined: Jan 11, 2006
Actually you do not call the method. Please see the javadoc.
"Calling setFullScreenMode(boolean) may result in sizeChanged() being called. The default implementation of this method does nothing. The application can override this method to handle changes in size of available drawing area".
This method will be called, with the correct values, by the container implementation.