09-16-2008 09:42 AM
in my application, there r two entry points
1st registers phoneListner at phone startup( autostartup )
2nd lounches application manually..
now when i use system.exit(0) to exit from my app, i also lost my registered phoneListener....a big prob !!!
09-16-2008 11:18 AM - edited 09-16-2008 11:20 AM
09-17-2008 04:38 AM
09-17-2008 04:48 AM
yes i also believe the same thing as u said..but my code just behaving unexpectedly, so i m confuse..
when my app fires system.exit(0), immediately i cant catch phone events for which i had registered phoneListener
09-17-2008 05:12 AM
Given that it works for me, and doesn't work for you, then this suggests there is a issue with your setup. So you are going to have to give us more if you expect us to help. We will need to know how you are testing including things like Level, OS Level, what messages you see or don't see, what debugging you have done, and so on.
However in your case, I would create a very simple Phone Listener, that just does something like System.out.println(...) in the interface methods, add that rather than your real one, and use it to prove that you are really NOT going through the Phone Listener. Creating this also means that if you see a problem, you can give easily give us the code to try.