"Android" Android chat robot implementation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.