06-20-2012 09:20 AM
I design a Blackberry application with only one screen. and
I am using Socket connetion in my App, Which is run in background thread.
When i press back button on screen of my app, a Dialog has apear with Yes NO Button and message "Do you want to Exit ?".
When user click on Yes button device reboot.
I write th code for Yes Button:
Here my application doesn't close and reboot my device.
But As socket Downloading has been comepleted then i do this process. Then i successfully exit from app without reboot device..
What am i Doing wrong ..
06-20-2012 09:40 AM
System,exit() (Runtime.getRuntime.exit(0)will stop any running Threads, so if you want your Thread to continue, just put your application in the Background
I've no idea why this would reboot your phone. Does it happen on the SImulator too?
06-21-2012 04:42 AM
"I want to close my application not run in background. "
I understand that, but closing the Application that starts a Thread will also stop the Thread. Is that what you want?
Can I confirm that you are in fact using the JDE for 5.0 or earlier? I have seen issues when a later level of JDE was used.
06-22-2012 04:05 AM