It is necessary to transfer a complex object to another Acitvity in Android. Why does not it go out to use Serialization or Parcelable and pass through Intent: I want to transfer the TcpServer class in it I have two nested classes-threads (Thread).
That is, when creating this class, TcpServer starts the first stream (it starts ServerSocket and waits for clients). With accept (client connection), this thread creates a second thread for a specific socket. So here in the TcpServer class, I made a write () method that sends a message to all current clients. And just so seralizovat this object will not work. And not only that - I need the very same object (and not a new one) on the second activation. How can I do that? Purpose: I just need to send messages to all clients from several Activities.