11-02-2010 06:56 AM - edited 11-02-2010 07:00 AM
Is something wrong with the Torch simulator? I have an app that listens to incoming and outgoing calls using the PhoneListener and I am testing that code on OS 6. I dial a number, press green key to call and then net_rim_bb_phone_app gets a NullPointerException on ActivePhoneScreen(Screen).onDisplay() line 4125. Just like that. My callInitiated() is not even called.
I also get a crash when simulating a call. I get the crash after I have handled callConnected(), so the call is coming, I press the green key to answer and BOOM!!!
Another thing: If call alert sounds are set to 'all alerts off' then MediaPlayer.isSucces() line 713 gets a MediaNativesEception. I managed to work around that one by settings alert sounds to silent.
Solved! Go to Solution.
11-02-2010 02:58 PM
What BlackBerry device software version are you testing on? You can find this under Options, About on the BlackBerry Smartphone.
11-02-2010 03:09 PM - edited 11-02-2010 03:10 PM
The 22.214.171.124 simulator have that bug what you described (with the call). The first call cause this exception indiferent if you have attached listener or not, if you hit the continue (a few times), after that will work (mean from the second call). Download the 126.96.36.199 in that simulator that bug was
11-02-2010 05:46 PM
Simulator software is 188.8.131.52. I will try to install new version as sannyo suggested.
I ran the software on a real Torch with 184.108.40.206, can't see the crash here, but I can see that when I try to get a PhoneCall object from the callId null is returned - weird.
Thanks for helping.
11-03-2010 05:22 AM
The simulator 220.127.116.11 works just fine. Thanks for the tip sannyo :-)
My real Torch phone is still using 18.104.22.168 and can't be updated, so my software will still fail on that device.
11-03-2010 05:27 AM
where can i find the 246 simulator?
when i browse the downloads on blackberry.com the 141 is listed as the latest
11-03-2010 05:45 AM
Yes. You are right, and that must be a mistake from RIM.
On http://us.blackberry.com/developers/javaappdev/ , click the 'BlackBerry smartphone simulators' hypertext just above the 'Latest Simulators' drop-down. It launches a page (http://us.blackberry.com/developers/resources/simu
11-03-2010 05:50 AM
thanks jcnielsen. strange that it was not listed otherwise.