Android RSS Feed Reader Application Development

Amardeep Yadav

Hello there, My name is Amardeep founder of loopwiki.com. I have experience in many technologies like Android, Java, Php etc. In this variety of technologies, I love Android App Development. If you have any idea and you want me to develop for you then let’s have chat Email: [email protected]

You may also like...

35 Responses

  1. Phani Raaj says:

    Hello, My name is raaj and been trying to create a rss feed in my android using your source code. the problem is it works fine with your default rss feed url in the code but when i change the url. it displays plain xml code and no pictures either. What should i do? please help me im stuck here

  2. Aram says:

    Hi, I followed your tutorial and it was just great, it’s all working as I wanted. But there’s one thing that’s left and I’m asking for, How can I activate the links so when I click an article it’s going to a browser and read the content of the news? I’m not sure if you already added this functionality or not but on my app it’s not working.
    Thanks alot for this great tutorial again

  3. Triono Hidayat (Rion) says:

    Image dont show. why?

    • else if (cureent.getNodeName().equalsIgnoreCase(“media:thumbnail”)) {
      //this will return us thumbnail url
      String url = cureent.getAttributes().item(0).getTextContent();
      item.setThumbnailUrl(url);
      }

      Debug this part of code you will find solution

  4. Triono Hidayat (Rion) says:

    Image don’t show. why?

  5. Justen H says:

    How to run new activity contains news details(full news description) when I click on it

  6. Raj says:

    Hii sir tell me how post admob code in this code

  7. monzer ahmed says:

    can you make details activity ? please

    • Mate it’s simple to make details activity just set onclick listener on layout of recyclerview pass url of the feed using intent extras then inside details activity get that url and load it inside webview that’s all 🙂

      • Mohsin Shehzad says:

        Sir my name is Mohsin Shehzad Sir I Try other news website link like new york times and other BBc like news provider
        on other sites it works well but cannot display picture or images can you have any solution to that problem please reply me as soon as possible

  8. harsh Lata says:

    Can you please tell me how to get image url from tags and also from tag which has img tag inside of it. please

    • You can observe following part of above code it’s already parsing images from the feed

      else if (cureent.getNodeName().equalsIgnoreCase(“media:thumbnail”)) {
      //this will return us thumbnail url
      String url = cureent.getAttributes().item(0).getTextContent();
      item.setThumbnailUrl(url);
      }

  9. ahmad ibrahim says:

    good tutorial hanks, please if your finish your tutorial show the screenshot of application developped

  10. rizal says:

    help me i stuck in here : Cannot resolve method ‘with(android.content.Context)’

  11. Godwin says:

    I noticed that whenever I refresh the Feed, the width of the display shrinks. What could bee the problem? How can i retain the width = match_parent , Hight = match_parent?

    • Godwin says:

      never mind, I have solved it

      • Nishita says:

        sir can you plss help me out in my problem,plsss my problem is as shown below
        “Yadav sir, haven’t u put source code of main activity and am showing an error in main activity while creating just an simple object why is it so like “cannot resolve symbol””

      • David says:

        Hi I am getting the same issue. How did you fix it? Ive tried hard coding the size but it seems like its a problem on the RecyclerView end. Thanks in advance!

        • Godwin says:

          @David, sorry for replying late. What I did was to always check if the adapter contains data each time I fetch new items :

          if (recyclerView.getAdapter() == null || recyclerView.getAdapter().getItemCount() < 1){
          adapter = new FeedsAdapter(context, feedItems);
          recyclerView.setLayoutManager(new LinearLayoutManager(context));
          recyclerView.addItemDecoration(new VerticalSpace(20));
          recyclerView.setAdapter(adapter);
          }else {
          adapter = (FeedsAdapter)recyclerView.getAdapter();
          adapter.setItems(feedItems);
          adapter.notifyDataSetChanged();
          }

          This solved it.
          Note : If you are not using CardView, you dont need the item Decoration.

    • This is due to item decoration we have added due to that it’s shrinking on every refresh. Make sure you are calling adding of decoration only once on recyclerview.

  12. Sonam Bhadouria says:

    i have follow your tutorial point to point but not getting data .getting error set adapter? help me out.

  13. Nishita says:

    Yadav sir, haven’t u put source code of main activity and am showing an error in main activity while creating just an simple object why is it so like “cannot resolve symbol”

  14. kalpesh says:

    how can I use this script for blogger RSS feed? like, http://www.gujaratifeed.com/atom.xml

  15. halil says:

    sir pls help me ,how I make detailActivity? I have tried 2 days but I cant success 🙁 pls help me ,can you share code of detail activity making pls, thank you

    • Godwin says:

      Just create an Activity that has a webView in the Layout, pass the url of the seleted news from the List , then set the on the webview and thats all.

  1. November 13, 2018

    […] How to process data part 2 : android xml parser tutorials this tutorial is for processing data fetched from rss feeds Download Source Code from here : http://www.loopwiki.com/application/android-rss-feed-reader-application/ […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.