I've got a server socket connection running all the time when my application is online but when my application gets suspended because of a call / battery low notification or something else, i get an exception:
java.io.IOException: invalid handle during socket::write
I don't touch the connection so i assume that it's failing just because the application is being paused.
Anyone has every encountered this problem ? is there some kind of code so that the application will never be suspended and if there's a call it will be set to the background ?
I fixed this with an SDK other than Nokia but i'm still restricted with the phone make (and i want this application to be suitable for various phones such as nokia, sony ericsson etc...), so i would like to have some function to fix my problem maybe just handle the connection not to fail, the thing is that i can't afford that the connection fails because it costs too much to re-connect, so it isn't a solution because i already thought about it :-/