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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
Hithredin
Posts: 344
Registered: ‎06-03-2010
My Carrier: Free

Dialog crash 9900

Hi!

 

Does someone have a idea about a crash problem under the Bold 9900 with a dialog? It crashes when I click on any of the two buttons. I just get the first log, and only a "application exit" with no trace at all.

 

Logger.info("[FirstScreenChooser]question");

int result = 0;
String[] response = { "Installer", "Quitter" };
result = Dialog.ask(Local.get(Local.RELOAD_FORCE), response, 0);

Logger.info("[FirstScreenChooser]result ask: " + result);

 

It's weirds that it works well on any 0S 5 and 6 devices, and even on a 9860 device (which is a OS 7).

 

 

Thks!

 

 

Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

Re: Dialog crash 9900

Where is this code being called from (click of a button, background task, etc...)?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
Hithredin
Posts: 344
Registered: ‎06-03-2010
My Carrier: Free

Re: Dialog crash 9900

Hi and thanks MSohm

 

In fact I've been deeper and found a behaviour that is different between the 9900 and any other devices (even under OS 7). I am not sure if it is a bug since this behaviour is not without sense:

 

It happens while doing this on My Splascreen:

 

  • Pop my splashscreen screen
  • Push a dialog
  • When the dialog is answered and popped, my application exit without beeing able to push another screen

 

But it works when I reverse the order of my actions like this:

 

  • Push a dialog
  • When the dialog is answered and popped, my application push another screen
  • Pop the splashscreen

 

 

To tell in a few word: the 9900 kills the UIApplication if it has no screen

Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

Re: Dialog crash 9900

Are you extending MainScreen?  The default behaviour of MainScreen is to close the application if it is the last screen on the display stack.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.