Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 7
Registered: ‎07-28-2009
My Device: Not Specified
Accepted Solution

Override 'Save Changes' Dialog when quitting an application

Hello, i was wondering if it was possible to always close an application discarding changes made, since System.exit(0) always pulls up a dialog box to save changes
Developer
Posts: 984
Registered: ‎02-10-2009
My Device: Not Specified

Re: Override 'Save Changes' Dialog when quitting an application

Override onSavePrompt() in your class

 

protected boolean onSavePrompt() { return true; }

 

Regards

Bikas