AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Creating android interface for chatscript server
 
 

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.

 

 
  [ # 1 ]

Is there any java interface available for ChatScript?

 

 
  login or register to react