RSS feed create

628 views
Skip to first unread message

Fejér Gábor

unread,
May 10, 2016, 2:53:34 AM5/10/16
to MIT App Inventor Forum

Csevegés indítása
Hi, My name is Gábor from Hungary. And i have a problem. I would like create a rss feed with appinventor. But i don't know, how can I. I have seen a tutorial on the youtube. I would like to make, where the article is in a textbox. And the articles is always up to date when the app running. Sorry my english. Can anybody help me? thanks

Taifun

unread,
May 10, 2016, 11:41:30 AM5/10/16
to MIT App Inventor Forum
have you seen these threads about rss in the forum?
Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Fejér Gábor

unread,
May 10, 2016, 3:58:28 PM5/10/16
to MIT App Inventor Forum
Yes, I have read. These are very complicated for me. I just need to get a site listed 5-10 rss latest news. When the application is started, it automatically lists all the news. one under the other.

Ghica

unread,
May 10, 2016, 5:12:48 PM5/10/16
to MIT App Inventor Forum
If it is in English, could you provide a pointer to the tutorial?
Cheers, Ghica.

Fejér Gábor

unread,
May 11, 2016, 8:54:02 AM5/11/16
to MIT App Inventor Forum
http://core0.staticworld.net/images/article/2014/10/press-reader-100509095-medium.idge.png

Something like. It displays one Rss feed' news. There is no choice between feeds.

ScottFerguson

unread,
May 11, 2016, 10:33:34 AM5/11/16
to MIT App Inventor Forum
Could you provide a link to the site which feeds the 10 latest news items?

Fejér Gábor

unread,
May 11, 2016, 2:38:39 PM5/11/16
to MIT App Inventor Forum
Sorry about my personal email. Here is the link abourt rss feed'news.

Akshay

unread,
May 11, 2016, 7:10:31 PM5/11/16
to mitappinv...@googlegroups.com
I have done something like what you wanted. I've attached the sample project that does what you said. Modify the project as per your wish. The blocks are as follows:

Screen1: Used as a Splash Screen:

Screen2: Displays first 10 feeds from the website link that you've mentioned (see attached project):





Screen3: Loads and Displays the selected topic in the webviewer:


Features:


- All strings localized to Hungarian. ( using Google Translate :)

- Ready to compile.

- Splash screen images were took from the website.

- Simplest implementation using blocks.

- Displays the first 10 feeds using a button, and that button, when clicked, loads the full website for that corresponding page in the webviewer.

- Displays date and time of posting each post, under its title.


Screenshots:

  



I've done your homework! Enjoy!

P.S: If you can't understand the working of any component in the attached project, let me know, and I'll help you.


Regards,

Akshay.

blocks1.jpg
blocks2.jpg
blocks3.jpg
sample.aia

Fejér Gábor

unread,
May 12, 2016, 4:44:27 AM5/12/16
to MIT App Inventor Forum
Thank you very much. Excellent work! This would not have been for me. I am very grateful. Simplier were already done by me, but so perfect application not yet.

Ghica

unread,
May 12, 2016, 6:19:51 AM5/12/16
to MIT App Inventor Forum
This is indeed a very nice design and a good piece of code. Great work Aksay!

I would like to optimize the code a bit. Unfortunately it will become a bit more advanced (but shorter).
First, make a list of the buttons, like this:


It would be easy now to add or remove extra buttons. 
You have to call the createButtonList in initialize:


Now, returnComponent simply becomes: (Instead of the very long if-then-else chain)

Another optimization is to make a procedure for opening the screen (if you ever change your mind about what to do, it will be easier):

The click events for the buttons are easier now, for example for Button4:

It would also be nice to use Web1.XMLTextDecode, which should make the decomposition of the XML response easier. But it gives a runtime error, I will try to find out whether it is a bug.
I attached the changed .aia
Have fun with it!

sample_copy.aia
Reply all
Reply to author
Forward
0 new messages