I’ve managed to get the back end working for an android app, where it parses an RSS Feed. However I’m having real trouble getting it to display on the GUI. I’ve read many tutorials, and either I’m doing something nobody else is, or as more likely the case, I’m doing something silly, like not calling something somewhere.
The problem is, after some help for the guys who’s already responded, I’m getting null pointer exceptions in my code. I’ve posted teh errors below for you to take a look at. The code hasn’t changed vastly from where I’ve dumped it on codepad.
I’m parsing the XML using SAX if that makes a blind bit of difference.
I’ve dumped the pertinent files here in plain text, and sorry that they’re in one massive bunch….
I just can’t figure out where i’m going wrong. Many thanks for your time once more.
The errors from catlog are as follows:
If you extend
ListActivityand want to use yourmain.xmlthen you forgot to call:in your
onCreate()method(before thefeeds = getFeed(feedSource);). Also if you plan to extendListActivitythen in your layout you must have aListViewelement with the id:Then in your updateGui method you don’t have to find the list because the
ListActivitywill automatically find it as long as you have the aboveID: