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

Posts: 35
Registered: ‎11-26-2008
My Device: 8100
Accepted Solution

how to get rid off from save/discard/cancel dialog

i m facing save/discard/cancel dialog alert when going back to screen


i have put following code where the dialog alert is coming but didn't work

protected boolean onSavePrompt() {


         return true;




please let me know how to solve this

Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: how to get rid off from save/discard/cancel dialog

Uhhh...that actually works.


Are you placing this code in your Screen class??


Try placing a breakpoint in the method to insure that it is really being called by the framework.