Trying to make set and get Fuction for a Socket.... but i get null in get method
Here is Some sample Code!!
public static Socket sock=new Socket();
public static Socket recvsock;
public static SocketInfo ipinfo;
public static void setSocket(Socket socket)
Log.d(handsOn.Tag, ""+sock.getInetAddress());//Dis log fuction is bcoz i m coding for n Android .. same as System.out.println()
public static Socket getSocket()
Re: Trying to make set and get Fuction for a Socket.... but i get null in get method
Please post the full text of the error message you are having problems with and the code that is causing it.
Please edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting.