• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Incomplete description in downloaded RSS feed

Quipeace

Lurker
First of all, this is my first post here, I'm not great at introductions so I'll just say hi all :).

Now to the point, I'm working on an RSS reader geared towards a specific dutch website. The application is working great, but there's one problem I just can't seem to solve.

So I'm downloading the RSS feed from the web using a pretty much unmodified version of downloadText() found here:
Connecting to the Web: I/O Programming in Android
and store the resulting string in a file on the phone's memory:
Code:
            String RSSFeedString = HttpDownload.DownloadText("http://lyceumpenner.nl/feed/rss2");
        	FileOutputStream fos = openFileOutput("rsscache", Context.MODE_PRIVATE);
	        fos.write(RSSFeedString.getBytes());
	        fos.close();

The feed downloads fine but there's one weird thing, for some reason the text between the <description> tags is reduced to somewhere around 50 characters followed by the text "read more". Even weirder, the problem does not appear on the emulator! I have tried both FRF91 and CM6 on the acer liquid, and the problem appears on both. Downloading the raw feed on my PC does work properly.
Also, the words "read more" don't appear anywhere in the source code.

Do you guys have any idea of what's going on here?

EDIT: I found out the source of the problem, I'm somehow getting the description of the mobile version of the website. Is there any way I can just get the full version?
 
Back
Top Bottom