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
Contributor
Posts: 33
Registered: ‎12-03-2011
My Device: 9800
My Carrier: Blackberry

Re: on back save prompt not shown

code is same as i post above just add 

public boolean onSave(){
savePreference();
return true;

}

 

in the place of

// public boolean onSavePrompt(){
//savePreference();

// return super.onSavePrompt();
//}

Highlighted
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: on back save prompt not shown

You may also be saving the data in other places, like your keyChar() method or in your close() method.  Put a break point in your code that saves the value, press the back/Discard and figure out why the save processing is being called.