Project Address: Https://github.com/ZhangTingkuo/AndroidCnblogs
1. View Comments
// Get article Comments Public Static Final String blogs_comments = "Http://wcf.open.cnblogs.com/blog/post/{postid}/comments/{pageindex}/{pagesize}"; // Get news Reviews Public Static Final String news_comments = http://wcf.open.cnblogs.com/news/item/{contentid}/comments/{pageindex}/{pagesize};
<entry><ID>2651327</ID><titletype= "text"/><published>2013-04-07t18:06:24+08:00</published><Updated>2014-09-10t15:14:10z</Updated><author><name>Panasonic Pants Belt</name><URI>http://home.cnblogs.com/u/360988/</URI></author><contenttype= "text">This is a good egg.</content></entry><entry><ID>2652650</ID><titletype= "text"/><published>2013-04-09t09:56:48+08:00</published><Updated>2014-09-10t15:14:10z</Updated><author><name>John23.net</name><URI>http://home.cnblogs.com/u/64521/</URI></author><contenttype= "text">Thanks for sharing</content></entry>
2. Search for Bloggers
Search bloggers, if you enter Chinese language, you need to transcode. In English, there is no difference between transcoding and transcoding.
1 http://wcf.open.cnblogs.com/blog/bloggers/search?t={term}2 If. Just like the initial 3 http://wcf.open.cnblogs.com/blog/bloggers/search?t=%e8%8b%a5%e3%80%82%e5%8f %aa%e5%a6%82%e5%88%9d%e8%a7%81
Try { = Urlencoder.encode (AuthorName, "Utf-8"); Catch (unsupportedencodingexception e) { e.printstacktrace (); } = Path.replace ("{term}", AuthorName);
The format of XML is the same as the XML format of the recommended blogger, so there is no need to re-write handler and adapter. Just use it before you can.
1 <entry>2 <ID>http://www.cnblogs.com/jillzhang/</ID>3 <titletype= "text">Robin Zhang</title>4 <Updated>2012-04-04t19:30:55+08:00</Updated>5 <Linkrel= "alternate"href= "http://www.cnblogs.com/jillzhang/"/>6 <Blogapp>Jillzhang</Blogapp>7 <Avatar>Http://pic.cnblogs.com/face/12311/20140902133806.png</Avatar>8 <Postcount>290</Postcount>9 </entry>Ten One <entry> A <ID>http://www.cnblogs.com/JimmyZhang/</ID> - <titletype= "text">Jimmy Zhang</title> - <Updated>2014-09-10t11:15:32+08:00</Updated> the <Linkrel= "alternate"href= "http://www.cnblogs.com/JimmyZhang/"/> - <Blogapp>Jimmyzhang</Blogapp> - <Avatar>http://pic.cnblogs.com/face/u24804.jpg?id=30073100</Avatar> - <Postcount>83</Postcount> + </entry>
Android Blog Park Client (v) View reviews, search bloggers