I am developing an application which incorporates socket programming. I need to refer to the socket object created in the starting application when connected to a server in any other activity in that application .
Can I define a class in an acitivity and define a socket as a static field in that class and refer to that socket object from any other activity in that application??
Can I define a class in an acitivity and define a socket as a static field in that class and refer to that socket object from any other activity in that application??