Android client killing connection
===

OK so I'm making a simple pc-android server-client app with this code:

    package org.smiley.doom;

    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    
    import java.net.InetAddress;
    import java.net.Socket;
    import java.net.UnknownHostException;
    
    import android.app.Activity;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.Button;
    import android.widget.EditText;
    import android.widget.ImageView;
    import android.widget.TextView;
    
    public class ClientActivity extends Activity implements View.OnClickListener{

	public static ImageView im;
	public static Socket s;
	public static boolean go;
	public static TextView log;
	Button send;
	EditText tip;
	InetAddress inet;
	int rport;
	String ip;
	ObjectOutputStream out;
	ObjectInputStream in;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        tip = (EditText) findViewById(R.id.etIP);
        send = (Button) findViewById(R.id.bSEND);
        im = (ImageView) findViewById(R.id.ivPIC);
        log = (TextView) findViewById(R.id.tvLog);
        
        s = null;
        in = null;
        out = null;
        
        send.setOnClickListener(this);
	}

	@Override
	public void onClick(View arg0) {
		switch(arg0.getId()){
			case R.id.bSEND:
				byte[] b;
			    int len;
					try {
						inet = InetAddress.getByName("192.168.0.2");
						s = new Socket(inet, 4321);
						out = new ObjectOutputStream(s.getOutputStream());
						in = new ObjectInputStream(s.getInputStream());
						log.setText("Client opened");
						len = in.readInt();
						b = new byte[len];
						in.read(b);
						log.setText(b.length);
						out.writeBoolean(true);
						out.close();
						in.close();
						s.close();
						System.out.println("Client closed");
					} catch (UnknownHostException e) {
						log.setText(e.getMessage().toString());
					} catch (IOException e) {
						log.setText(e.getMessage().toString());
					}
			break;
		}
	}
    }

But for some reason, when ran, it'll connect to the server then crash without changing my textview log at all, i know its not a problem with the server as i had nearly this exact same code running on a normal java project and it connected flawlessly.  The problem seems to be when it trys to set up the object output/input streams(because thats all that happens in between the log updating and the client requesting a connection) but i cant figure out why for the life of me

as always any help is appreciated :)