09-28-2009 08:18 AM
We have a problem calling and receiving phone calls while running our IM application.
The app contains a thread that makes a socket connection to an IM server and opens an output and input streams on the connection and parses incomming messages.
Is there some known issues when openning a socket connection that would disable calling/receiving phone calls?
The run method looks as follows:
catch ( Exception uncaughtException )
System.out.println( "UNCAUGHT EXCEPTION: " + uncaughtException.getMessage() );
System.out.println("IM THREAD TERMINATED! + (" + thisInstanceNumber + ")");
Connect - opens the connection:
connection = (SocketConnection ) Connector.open("socket://" + this.host + ":" + this.port + ";deviceside=true", Connector.READ_WRITE);
this.reader = new XmlReader(connection.openInputStream());
this.writer = new XmlWriter(connection.openOutputStream());
sc = (SecureConnection)Connector.open("ssl://" + this.server + ":" + this.port, Connector.READ_WRITE);
is = sc.openInputStream();
os = sc.openOutputStream();
this.reader = new XmlReader(is);
this.writer = new XmlWriter(os);
System.out.println("IM CONNECTED AS: " + this.myjid + " - thisInstanceNumber: (" + thisInstanceNumber + ")");
catch (final Exception e)
this.connectionFailed("CONNECT ERROR: " + e.getMessage());
sendLogin - sends an XMPP message to login.
parseIn - listens to the incomming stream for characters.
Is it possible to not be able to make or receive phone calls due to a connection being left open or some other issue?
Any help/suggestion greatly appreciated!
09-28-2009 09:21 AM
09-28-2009 09:36 AM
My understanding of a class B device is that, when a GPRS connection is established and a voice call is made/received, the GSM voice call should take priority and the GPRS connection will be suspended until the voice call is terminated.
Given this, I wouldn't expect a socket connection (whether active or not) to block an incoming call. I've not come across issues such as this on other class B platforms before - voice calls are always given precedence over GPRS connections.
Is my understanding incorrect, or are there known issues with GSM/GPRS precedence on BlackBerry?
09-28-2009 09:53 AM
09-28-2009 10:02 AM
Just tested receiving an incoming call on Vodafone UK whilst downloading over GPRS and you're correct, it went straight to voicemail. Does this indicate that the issue is operator-dependent? I'll have to try a few more networks to see how they are affected.
I was still able to make an outgoing call whilst downloading though, which I'm not able to on the BlackBerry when running my app. Investigations continue...
09-28-2009 10:18 AM
09-28-2009 10:20 AM
09-28-2009 10:27 AM