java Android RSS 示例

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2015015/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 18:55:39  来源:igfitidea点击:

Android RSS Example

javaandroid

提问by Michael Doornbos

How do you do you fetch a single RSS feed and show it in an ListView?

您如何获取单个 RSS 提要并将其显示在 ListView 中?

I realize there's hundreds of ways, but a clean and simple example would be appreciated.

我意识到有数百种方法,但一个干净简单的例子将不胜感激。

回答by JCasso

A complete application is here:
http://code.google.com/p/android-rss/

完整的应用程序在这里:http:
//code.google.com/p/android-rss/

You can download the source code from svn. If you are familiar with Android, it will not be hard for you to solve what is going on.

您可以从 svn 下载源代码。如果您熟悉Android,那么您将不难解决正在发生的事情。

回答by kranti

this is the best site for which you can create sample rss feed application. It consists all things xml parsing,http response,threads,handlers you will get good idea

这是您可以为其创建示例 RSS 提要应用程序的最佳站点。它包含 xml 解析、http 响应、线程、处理程序的所有内容,你会得到好主意

http://androidresearch.wordpress.com/2012/01/21/creating-a-simple-rss-application-in-android/

http://androidresearch.wordpress.com/2012/01/21/creating-a-simple-rss-application-in-android/

回答by shanabus

The easiest sample I found was here. If you just pull in the classes (RSSItem, RSSParser, and code from the RSSListActivity) in this example you'll be all set in no time.

我找到的最简单的样本是here。如果您只是在本示例中引入类(RSSItem、RSSParser 和来自 RSSListActivity 的代码),您很快就会完成所有设置。