Android TCP connection on changing orientation
===

I am trying to develop a simple chat application, only for study purpose. 
My problem is that when the screen orientation is changing the TCP/IP connection is closed and recreated after orientation changes.

I know that Android destroys the activity and recreates it when changing orientation.

So my question: It is posible to change only view but everything else to remain intact?

Thanks