Hi all,
I am trying to create an android app that will let the user talk with chatbot running locally in the chatscript server on windows system. Simply, I am replacing built-in php interface with android interface.
I am running the android program with socket concept to connect to the CS server. In CS server,one must login with username to do the chat.And I dont know how it should be passed.
Below is my coding to send msg too the CS server.
client = new Socket(“10.0.2.2”, port);
pwr = new PrintWriter(client.getOutputStream());
pwr.write(msg);
pwr.flush();
pwr.close();
client.close();
Thanks in advance.
P.S: I am running the android app in the emulator.