I'm the developer of an application that needs to keep a permanent connection with a remote server. In order to achieve this goal a socket instance is created when the application startups. The outputstream and inputstrem instances associated with the socket are used to exchange the data with the server. Also i have implemented a reconnection mechanism: when the connectivity of the device is down i launch a reconnection thread that detects if the connectivty has been restarted to recreate the connection with the server (creating a new socket). The main problem is a lot of users that have downloaded the application reported that the application only keeps connected a few minutes and is reconnecting so much. So these are my questions: -Is my approach (use a socket object) right to keep a permanent connection with a server? -Is there a limit of socket instances created in the same session of an application? Sometimes happens that after 10/20 tries the socket instance can't be created and the only alternative is closing the application and starting it again. Please take in account that this issue doesn't happen always. -Do you know if Android platform provides another way to achieve my goal? I will appreciate your help. Thanks, Pablo
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

