This is a three-part question. I am new to Android and am trying to create a new app that reads RSS feeds and shows them on the home screen in the form of a widget.
- What network calls are required to show a well-formatted RSS feed?
- What layout structures can I use to hold the received content?
- How can I make the web browser open the link to the RSS feed if the user selects it from this widget?
Thanks for your help!
First, the interactive bits of the home screen are called “app widgets”.
Second, this is unlikely to be easy, except perhaps on Honeycomb.
Ask whoever you are getting the RSS feed from. Typically, it is HTTP. However, if you spend the time to research what “RSS” and “network calls” mean, you will learn that they are largely unrelated. I can give you an RSS feed in the form of a piece of paper, for example.
On Honeycomb, you can use a
ListViewfor your feed in an app widget.Use
startActivity()to launch anACTION_VIEWIntenton the URL.However, if you spend the time to research what “RSS feed” and “link” are, you will learn that browsers do not know how to display RSS feeds (an XML format). I am guessing that you really mean “open the link to the item from the RSS feed”.