Connection issue with my app on Dev Phone 1

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Connection issue with my app on Dev Phone 1

Postby bonny » Tue Mar 10, 2009 11:04 am

Hello guys. I'm developing a SIP application, at first on the emulator and now on my Dev Phone 1. My application works well, it connects well to the SIP server and can do and receive calls (at the moment I'm working on audio :) ) but the problem is that when I open the keyboard of the device, I lose the connection. I mean, I open the keyboard and the app return that I'm disconnected, and when I try to reconnect it gives me a Time out on registration, like it has not the internet access anymore.
Sincerely I don't understand where the problem can be, maybe it's this error
Code: Select all
ERROR/OSNetworkSystem(724): unclassified errno 98 (Address already in use)

on DDMS, but usually I receive it and the app works well anyway.
Could someone help me,please?I really need it.
bonny
Junior Developer
Junior Developer
 
Posts: 19
Joined: Fri Apr 11, 2008 2:08 pm

Top

Postby zrgiu » Tue Mar 10, 2009 4:13 pm

i also have a very similar problem.. any fix ?
zrgiu
Junior Developer
Junior Developer
 
Posts: 10
Joined: Sat Nov 01, 2008 5:54 pm

Postby bonny » Tue Mar 10, 2009 5:20 pm

After lots of tries on the phone (It's 3 months that I have this issue) I found the source of the problem. The problem is that when you open the keyboard the method onCreate (and also the other of the activity licecycle) is called again, so it re-initialize the connections (for me it re-initialize the sip stack) and ruin everything. I made now a control to not initialize the sip stack again if the application is already open and now it works well.
bonny
Junior Developer
Junior Developer
 
Posts: 19
Joined: Fri Apr 11, 2008 2:08 pm

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: Exabot [Bot] and 6 guests