title: Android share only the socket variable between two activites (Will 'service' help)
body: <p>I guess this is too basic and as far as i searched i could not find any related questions.</p>
  
  <p>I have an activity where i create a socket is created. I have three more activities that will read/write to the same socket. But I have to get the socket inside each activity. As far as i searched, the 'service' were to be the best option, but when i read through it, I think it is more of a background processing of data rather than storing just the variable for later use. Can you please let me know how to go forward?</p>
  
  <p>I have 
  classA : Socket creation.
  classB : Write to the socket.
  calssC : Read from the socket.</p>
  
  <p>My initial idea was to create an obj of classA inside B and C but i think it will not work. Can someone help me here?</p>