I want to show rss feeds of link http://dekora.com/blog/?feed=rss2. I have done it successfully and i am showing it in a list view. But i have one problem in i want to display the element of tag, but here lits of HTML tags are coming. So what should i do for this? Should i replace all the HTML tags or there is any Convenient way to display this tag element. Can i show this tag element in a webview? In iPhone if we put this tag element in webview it shows the things in a good and convenient way. Can any body help?
To develop a Android Application that makes use of RSS Feed. Open Android Studio and then click on File -> New -> New project. Then type the Application name as “ ex.no.6″ and click Next. Then select the Minimum SDK as shown below and click Next. Then select the Empty Activity and click Next. Finally click F inish.
I assume you had created your AVD while doing environment setup. To run the app from Android studio, open one of your project's activity files and click Run icon from the toolbar. Just press the Fetch Feed button to fetch RSS feed. After pressing, following screen would appear which would show the RSS data.
They are two up-and-coming RSS-style newsreaders that are getting better with each update. Aggregator is a less popular, but still very powerful option for RSS readers on Android. It has the basic features. You can follow almost any website and the feed populates with that site’s latest news.
In the latest RSS standard, there is no tag for image. So in my previous project, I just preload an Android icon on each ListView row. In the past few weeks, many friends send me messages to request loading image in ListView. But, you need to keep in mind that the image tag is not specified in RSS Standard.
If you just want to display HTML you can look into android.text.Html.
You will need to use a custom adapter so you can control the display of the list view, so when you output the content you can do something like:
lblRSSContent.setText(Html.fromHtml(rssItem.getContent()));
I've noticed that the rss feed you provided also contains images. So you should also look into Html.ImageGetter so you can process and display the images.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With