Implementation of the Android intelligent robot "Xiao mu" project of MOOC and code interpretation [1]: android Robot
MOOC network is one of the free tutorials I found (http://www.imooc.com/), the above project design front-end, back-end, mobile development and many other fields, I personally feel that if you are interested in programming, MOOC is definitely the best choice for getting started projects. Some of the projects provided by this website are very novel, and they are much more novel than some projects that have not been used for many years. If you find any problems during study, you can leave a message to the teacher, then the teacher will reply one by one. In addition, each project will be accompanied by source code and some resources. If you cannot keep up with the progress of the teacher, you can go down and study it carefully. Well, I will introduce so much to MOOC.
I learned a little about JAVA during my summer and junior year, that is, I only learned the Basic JAVA syntax. I am interested in Android at the front-end time. The reason is that I feel that the Android simulator has a good time... I am interested in Android, so I want to find some projects on the Internet, on Weibo, I saw MOOC's project "Implementation of Android intelligent robot" Xiao mu ", and I was very interested in it.
I. Project Introduction
Friends who have played the internet know that there was a smart robot "Yellow Chicken" on Renren's Internet before. It is estimated that many people have "played" it or been played by it... intelligent Q & A robots are a very popular service nowadays. Through this project, everyone can create their own intelligent robots to achieve intelligent conversations with robots. This project is to develop an APK that can interact with robots through Android. You can learn from this project:
1. Use of the Turing robot third-party service API
2. How to Use AndroidTestCase to test the code
3. How to Deal with the layout of multiple items in ListView and how to use ListView to implement the chat dialog interface.
The entire project process is like this:
Encapsulate the messages you want to send into a class Object-> call a third-party API, send an HTTP request to get a reply-> get a response (in Json format) convert to the required Java object-> process the response, which is displayed on the layout
The layout file is also included in this process.
From the above points, we can see that there are still a lot of things that can be learned through this project. For example, the use of third-party APIs involves the knowledge of requesting resources from the server and calling third-party APIs. Before starting the text, I will post a final post to stimulate everyone's interest in learning. It's really fun!
Because the time required to study programming is limited every day and less time required to write, I will write it here today, and I will try to finish the call process of the third-party API of the Turing robot tomorrow ~