Digital Independence

............... Closing the digital divide ...............

DI News Android App (RSS Feed) Source Code

dinews2.png

You may have recently heard that Digital Independence has just released a news app to the Android App Market. First off, I would like to thank the folks at IBM for writing this XML parser for Android. Using their methods we have developed a rather simple Android app that simply pulls an RSS feed from the web and displays it to the user.

This app works on Android version 1.5 (Cupcake) or higher. Customizing this app for your needs is extremely simple, you only need to do a few things:

  • Edit the string `URL` in NewsMain.java to that of your website.
  • Edit the string `feedUrl` in FeedParserFactory.java to that of your RSS feed.
  • Edit the strings.xml file to your liking (including title, error/ loading messages, etc.

That’s it! Then you have a fully functioning RSS news app for Android. Feel free to leave a mention of us (or IBM) in your code comments or app description, but neither is required. Please do let us know if you find our code useful, and if you are publishing an app in the market using our code, we would love to hear about it. All source code can be found in this zip file. Simply uncompress, import into the Eclipse IDE, and edit. Happy developing!