How to handle activity life cycle involving sockets in Android?
- by Henrik
Hello all,
I have an Android activity which in turn starts a thread.
In the thread I open a persistent TCP socket connection.
When the socket connects to the server dynamic data is downloaded.
The thread sends messages using Handler-class to the activity when data has been received.
Now if the user happens to switch from portrait to landscape…