Quantcast
Channel: Android: Reading multiple rss feeds as fast as possible using asynctask / threads - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Kevin Coppock for Android: Reading multiple rss feeds as fast as possible using asynctask / threads

$
0
0

My thought process would be something like this:

  1. Create a list of all the feeds.
  2. From 1 to max number of threads, spawn a new thread to retrieve the data from the feed
  3. As a thread completes, checks list for remaining feeds to check; if more remain, remove feed from list and retrieve the data from the feed
  4. Each thread, once completed, adds the data for its retrieved feed to whatever data source you're using for the list adapter, sorts the data source, and notifies the list that the data set has changed.

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>