Hi krishnan,
Quote:
Originally Posted by krishnanrajah
How can a popupscreen be customized ? I need to add images to the border and dropshadows to the window. Also is it possible to keep the application running in background and pop-up when a PIN message is recieved.
|
You can create a custom Dialog by extending the
net.rim.device.api.ui.component.Dialog class and customizing it to suit your needs.
See the following link to create a background application:
http://www.blackberryforums.com/deve...to-starts.html
Sample code to show message from a Background application:
Code:
private void showMessage(String data) {
UiEngine ui = Ui.getUiEngine();
Screen screen = new Dialog(Dialog.D_OK, data, Dialog.OK,
Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION),
Manager.VERTICAL_SCROLL);
ui.queueStatus(screen, 1, true);
}
Enjoy,
ARIF