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
Developer
rgelb1
Posts: 108
Registered: ‎08-05-2008
My Device: Not Specified

App asks to Save/Discard/Cancel on exit

When I click the "Back" button the BlackBerry to exit the app, it asks me to Save/Discard/Cancel?  How do I disable this message, as I have nothing to Save or Discard.  I do save some things to persistent storage, but that's all internal to the app - the user should have to approve it, etc...

 

 

Please use plain text.
Developer
rafo
Posts: 507
Registered: ‎07-15-2008
My Device: Not Specified

Re: App asks to Save/Discard/Cancel on exit

override onSavePrompt() method in your app screen and always return true.

 

 

protected boolean onSavePrompt() { return true; }

 

 

 

----------------
if your issue solved set "Solution" mark at the relevant post
Please use plain text.