title: How to transfer Data between Android devices using wifi direct?
body: <p>I need to pass String values to the devices connected through Wifi-Direct..how can i pass string between two connected device..I am using Wifi-Direct file transfer example available as reference.</p>
  
  <p>In doInBackground method of FileServerAsyncTask I am using the code</p>
  
  <pre><code>ServerSocket serverSocket = new ServerSocket(8988);
  Socket client = serverSocket.accept();                 
  PrintWriter out = new PrintWriter(client.getOutputStream(),true);
  BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));
  </code></pre>
  
  <p>How do i modify onHandleIntent method? Any reference to this kind of implementation will be helpful. Thanks</p>