unable to run my android application

view story

http://stackoverflow.com – I am trying to establish a chatting application between a server and a client, but the application could not run because of this line of code : message = (String) input.readObject(); because at first, inputStream is null ! any one can help please ? here is my code package com.example.test; import java.io.BufferedReader; import java.io.EOFException; import java.io.IOException; import java.io.InputStreamReader; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.OptionalDataException; import java.net.Socket; import android.annotation.SuppressLint; import andr (HowTos)