Hello there,
Of course it is possible. Add a method to any classes that display something on the screen where you want to 'interupt' the close option like this :
PHP Code:
public boolean onClose(){
int i= Dialog.ask(Dialog.D_YES_NO,"Are you sure you want to quit !");
if(i>0 && i!=-1 ){
System.exit(0);
return true;
}
return false;
}
The Dialog Class is in net.rim.device.api.ui.component.*
Sorry if I've used wrong/incomplete terminology. I'm not a Java developer but have 'inherited' an application that I'm trying to fix up and it does exactly what you're looking for. As far as I can tell, this is how they achieve it
Hope this helps!