How to get rss feeds android?

前端 未结 3 1903
予麋鹿
予麋鹿 2020-12-05 21:51

I have this url here: http://www.webpronews.com/feeds

Now i need to get the feeds and display it in android. Any clue?

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 22:16

    That's not simple to implement.

    A RSS file is an XML file which structure complies to a standard (fixed tag names).

    In your application, you would need to:

    • Download the RSS feed: use HttpClient, services...
    • Extract the data out of XML: use a XML parser, some are provided
    • Store the data: the best solution is a SQLite database
    • Display the data: ListView with CursorAdapter pointing to the database

提交回复
热议问题