Yesterday saw an Android video tutorial Turing Man, that API interface is very convenient to use, ready to do one of their own. In addition, I also used the API interface of the gold map for positioning (formerly used in the German-made interface, more convenient than X-degree)
General process:
1. Building the UI
2. Request data [Robotics & Maps]
3. Parsing the data [interface returns JSON data]
4. The parsed data is assembled into HTML code [so it is very convenient to throw it on the TextView to show the image link.]
5. Updating the UI
So, the knowledge points used are: UI operation, network programming, multi-threading, data parsing
The chat interface is implemented with the ListView, dynamically loading the layout according to the different message senders. Welcome screen and Chat Bubble resource pictures are made. 9.png format to ensure normal display.
The application effect is as follows:
The code is more, this is not posted here, directly to the GitHub address.
Feel good, remember to star AH (god please automatically ignore ...) Light spray)
Have the cheek to throw the market, also do not know can audit pass, first time ~_~
Named Felicity is because the previous period in the United States to watch the drama Felicity, colleagues Felicity the moral is also very good, use it.
German map Interface: http://lbs.amap.com/
Turing man interface: http://www.tuling123.com/openapi/
Github:https://github.com/mummyding/chatwithfelicity
"Reprint Please specify the source"
Author:mummyding
Source: http://blog.csdn.net/mummyding/article/details/47018391
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
"Android" Android chat robot implementation