'readLine()' is deprecated less...
this is the error which is shown when i am using readLine() in android studio. What can be used instead
DataInputStream in = new DataInputStream(client.getInputStream());
String line = null;
while((line = in.*readLine()*) != null)
{
msg = msg + "\n Client : " + line;
handler.post(new Runnable()
{
@Override
public void run()
{
chat.setText(msg);
}
});
}
in.close();