Export to GitHub

program-ab - issue #5

Doesn't work on android


Posted on Mar 27, 2014 by Grumpy Rabbit

I follow the steps as said in program-ab.I had also place aiml bot file in android project and also provide path name for the aiml file.

  1. Dx bad class file error
  2. DX 41 warning

android app should be run on android device.but found dx warning

I am developing android app using eclipse using android sdk on windows 7.

If anyone had tried to develop android app using program-ab so please help me regarding this.

Comment #1

Posted on Mar 27, 2014 by Happy Giraffe

how did you link your app with program ab? Specifically how did you solve the "cannot recognize 'org.alicebot.ab.Bot' referenced in the method... issue?

Comment #2

Posted on Mar 27, 2014 by Grumpy Rabbit

Hi Ishworis, I solve DX 41 warning. By installing apache maven plugin in eclipse. After that I found "cannot recognize 'org.alicebot.ab.Bot' referenced in the method..." error.

-I had created libs folder in android project -paste ab.jar in libs folder -then added jar file to build path.

Before compiling project Eclipse does't shows any error but during compiling it shows"cannot recognize 'org.alicebot.ab.Bot' referenced in the method..." error. Have you fix it and have you run android app successfully?

Comment #3

Posted on Mar 27, 2014 by Happy Giraffe

There was already a libs folder in my project. I have already tried what you wrote up there, but it is still not working for me. It shows the same error.

Comment #4

Posted on Mar 28, 2014 by Grumpy Rabbit

I have same problem. So what do you think about to solve this error? I am searching on google for this error.

Comment #5

Posted on Mar 30, 2014 by Happy Giraffe

I don't know man, maybe there is something we are not doing right. Have you asked about this in forums?

Comment #6

Posted on Mar 31, 2014 by Grumpy Rabbit

I had tried to ask in chatbot.org but there is I need to register account on site.But registration process on this site not working so I am looking for another right forum.

Comment #7

Posted on Apr 1, 2014 by Happy Giraffe

There's an alternative for that. You can mail them and they will create one for you. I asked them but currently there are no solutions. If I find one I'll comment here. In the meantime you also keep searching.

Comment #8

Posted on Apr 2, 2014 by Grumpy Rabbit

Thank you Ishworis, I get my account on chatbot.org. Are you familiar with php. If yes then I think I have idea to build android chat app.

Comment #9

Posted on Apr 2, 2014 by Happy Giraffe

I trying to use program o. Currently, I am trying to connect the app with my local server using JSON, but I'm not too familiar so I am facing some problems. Are you familiar with JSON Parsing.

Comment #10

Posted on Apr 2, 2014 by Grumpy Rabbit

Comment deleted

Comment #11

Posted on Apr 2, 2014 by Grumpy Rabbit

Hi Ishwor, As what I get information for program-o I am sharing with you, There are three example interfaces for Program O all are located in the “gui” folder, each using a different method for accessing the chatbot. These methods are HTML (the default), XML and JSON (located in gui/jquery). The best one to use with Android app would be the JSON example, and we don’t actually need to use that example directly. The “gateway” for Program is the file conversation_start.php, located in the chatbot folder. it takes either GET or POST methods, and requires the following variables:

convo_id (identifies the user) bot_id (selects the chatbot to use - defaults to 1 for a single chatbot) format (either html, xml or json) say (this is the input that the chatbot will respond to)

Comment #12

Posted on Apr 2, 2014 by Happy Giraffe

This much I have understood, I am having trouble parsing the json. If you are able to do it please share it.

From now on we can mail each other, so please mail me in my email address, this thread is getting too crowded with our comments.

Status: New

Labels:
Type-Defect Priority-Medium