@@ -0,0 +1,1085 @@
+package com.example.untitled;%0A%0Aimport android.util.Log;%0A%0Aimport java.io.BufferedWriter;%0Aimport java.io.OutputStreamWriter;%0Aimport java.net.Socket;%0A%0A/**%0A * Created by Kristoffer on 1/13/14.%0A */%0Apublic class Client extends Thread %7B%0A    String ip;%0A    public Client(String ip) %7B%0A        this.ip = ip;%0A    %7D%0A%0A    @Override%0A    public void run() %7B%0A        super.run();%0A        try %7B%0A            Log.i(%22workshop%22, %22starting connection%22);%0A            Socket socket = new Socket(ip, 12345);%0A            socket.setReuseAddress(true);%0A            socket.setKeepAlive(true);%0A            Log.i(%22workshop%22, %22starting established%22);%0A%0A            BufferedWriter writer = new BufferedWriter(%0A                    new OutputStreamWriter(%0A                            socket.getOutputStream()));%0A            writer.write(%22Hello World%22);%0A            writer.newLine();%0A            Log.i(%22workshop%22, %22wrote data%22);%0A            writer.flush();%0A            writer.close();%0A            Log.i(%22workshop%22, %22connection closed%22);%0A%0A%0A        %7D catch (Exception e) %7B%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%7D%0A

Create Client.java