Code example for ObjectInputStream

Methods: readUTF

0
    } 
     
    public String receive(){
    	 
    	try{ 
    		String data=in.readUTF();
    		Log.v("conenction","receiving"+data);
    		return data;
    	  		 
    	}catch (IOException e){
    		e.printStackTrace();
    		return null; 
    	} 
    	 
    } 
     
    public boolean connectionstatus(){ 
    	if(client != null){
    		return client.isConnected();
    	} 
    	return false;