How could I avoid the SAVE dialog in my regular Blackberry application?

I write a Blackberry app and click on the screens one by one (three times in a row)

Screen 1 displays Screen2 and Screen2 displays Screen3

When I press the "Back Key" on my Blackberry ie device, in bold 9700, its request calls up a dialog box with a picture of a question mark and the Save button. Cancel Cancel.

Why does this dialog box appear? How can I avoid this dialogue?

Please help thanks to SIA

+3
source share
3 answers

You can avoid this type of dialog by overriding the onClose method for this screen:

public boolean onClose() 
{

  this.close();
  return true;
}
+1

:

+1

Just write this code in the specified class:

 protected boolean onSavePrompt() 
   {
       return true;
   }  

The Save Hint dialog box appears.

0
source

Source: https://habr.com/ru/post/1738858/


All Articles