Read from RSS feed

TrisectDevelopment

Active Member
Licensed User
Longtime User
I working on an App that should read from RSS feed.
I cant seem to find any solution on this board.

How do I read from a RSS feed and how do I display it?
 

NJDude

Expert
Licensed User
Longtime User
Yes it is an XML and you can also use the example to read this XML, just add the XML to the project files and change the name on the code.

I have attached a copy of the XML you put on the link.
 

Attachments

  • XML.zip
    3.3 KB · Views: 545
Upvote 0

NJDude

Expert
Licensed User
Longtime User
If by "gettting it to B4A" you mean how to add it to your project, you will have to ADD FILES, you will see that button on the designer, click there and then search for the XML you need and that's all.

Read the sample code I mentioned before, these lines load the XML:

B4X:
Dim in As InputStream

in = File.OpenInput(File.DirAssets, "test.xml") '<--- Your XML file name
Parser.Parse(in, "Parser")
in.Close

Check the attached picture.
 

Attachments

  • AddFiles.JPG
    AddFiles.JPG
    6.3 KB · Views: 394
Upvote 0

CidTek

Active Member
Licensed User
Longtime User
I just started thinking about displaying an RSS feed myself. My question is if an RSS feed displays fine in a browser, can you not just use a webview to display it?
 
Upvote 0
Top