Socket and restoring state problem

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

Socket and restoring state problem

Postby Couillette » Fri May 22, 2009 12:06 pm

Hello all ;)
I am new on android and on this board, and first of all i wanted to thank you for the work you do with anddev, it already help me a lot.

I'am developing an application which open a socket (TCP) to a server. I can read and write message. Now when the user turn the phone, the application is restarted. Usually, you can restore the app state with the bundle, but the socket is not Serialisable (course not).

I looked a little bit the Services, but i wanted to know if there were a way to save and restore the socket, without being forced to close and reopen the connection each time the user turn the phone ~_~ ?

Thank you
Posts: 6
Joined: Fri May 22, 2009 11:57 am
Location: France


Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 4 guests