Receive notification when the size of the drawable area of the touch screen changes
- Import the following classes:
- javax.microedition.lcdui.Canvas
- net.rim.device.api.ui.component.Dialog
- Extend javax.microedition.lcdui.Canvas.
- Override Canvas.sizeChanged(int, int).
protected void sizeChanged(int w, int h) {
Dialog.alert("The size of the Canvas has changed");
}
Was this information helpful? Send us your comments.