1. Check out our companion app, Forums for Android! Download from Google Play

Incomplete description in downloaded RSS feed

Discussion in 'Application Development' started by Quipeace, Aug 27, 2010.

  1. Quipeace

    Quipeace New Member
    Thread Starter

    Aug 27, 2010
    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 (Text):
    2.             String RSSFeedString = HttpDownload.DownloadText("http://lyceumpenner.nl/feed/rss2");
    3.             FileOutputStream fos = openFileOutput("rsscache", Context.MODE_PRIVATE);
    4.             fos.write(RSSFeedString.getBytes());
    5.             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?


Share This Page