Code example for ObjectInputStream

Methods: readUTF

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