Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid "Loaded time zone names for en in __ms."
    primarykey
    data
    text
    <p>The app I'm writing loads an RSS feed using the <a href="http://code.google.com/p/horrorss/" rel="nofollow noreferrer">HorrorRSS library</a>. The problem I'm facing is that looking at the logs I see oodles of this junk:</p> <pre><code>10-06 12:58:36.939: I/global(3159): Loaded time zone names for en in 624ms. 10-06 12:58:37.329: I/global(3159): Loaded time zone names for en in 368ms. 10-06 12:58:37.709: I/global(3159): Loaded time zone names for en in 370ms. 10-06 12:58:38.149: I/global(3159): Loaded time zone names for en in 403ms. 10-06 12:58:38.589: I/global(3159): Loaded time zone names for en in 420ms. 10-06 12:58:39.039: I/global(3159): Loaded time zone names for en in 446ms. 10-06 12:58:39.449: I/global(3159): Loaded time zone names for en in 393ms. 10-06 12:58:39.859: I/global(3159): Loaded time zone names for en in 396ms. 10-06 12:58:40.269: I/global(3159): Loaded time zone names for en in 401ms. 10-06 12:58:40.749: I/global(3159): Loaded time zone names for en in 459ms. 10-06 12:58:41.159: I/global(3159): Loaded time zone names for en in 404ms. 10-06 12:58:41.549: I/global(3159): Loaded time zone names for en in 380ms. 10-06 12:58:41.919: I/global(3159): Loaded time zone names for en in 366ms. 10-06 12:58:42.289: I/global(3159): Loaded time zone names for en in 363ms. 10-06 12:58:42.659: I/global(3159): Loaded time zone names for en in 368ms. 10-06 12:58:43.109: I/global(3159): Loaded time zone names for en in 437ms. 10-06 12:58:43.489: I/global(3159): Loaded time zone names for en in 377ms. 10-06 12:58:43.879: I/global(3159): Loaded time zone names for en in 387ms. 10-06 12:58:44.279: I/global(3159): Loaded time zone names for en in 387ms. 10-06 12:58:44.649: I/global(3159): Loaded time zone names for en in 367ms. 10-06 12:58:45.029: I/global(3159): Loaded time zone names for en in 379ms. 10-06 12:58:45.469: I/global(3159): Loaded time zone names for en in 438ms. </code></pre> <p>I realize that there is an issue with the <code>SimpleDateFormat</code> class as described in <a href="https://stackoverflow.com/questions/8880525/loaded-time-zone-names-for-en">this question</a>, and it looks like the <a href="http://code.google.com/p/horrorss/source/browse/trunk/src/org/horrabin/horrorss/RssParser.java#600" rel="nofollow noreferrer">RssParser.getDate() function uses it to extract the date from the RSS feed</a>.</p> <p>These statements seem to happen right after I load the feed, i.e.:</p> <pre><code>RssParser rss = new RssParser(); RssFeed feed = rss.load("some feed url"); // This is where the log statements begin appearing. </code></pre> <p>I can understand why they would be logged once, on the first call to <code>SimpleDateFormat</code>. But does anyone know why these statements are being logged over and over again, and how I can prevent them? They're making my app impossible to run as half the time the Android system deems it too resource intensive and kills it before the UI is even loaded.</p> <p>If the time zone names were only loaded once on the first call to <code>SimpleDateFormat</code> then it would be perfectly acceptable. But <em>every single time</em> I load an RSS feed I get dozens of these logs. Is there a way to turn the cache on or something??</p> <p>Any help would be greatly appreciated. I'm basically dead in the water till I can figure this out.</p> <p>Update: I have submitted an issue to the HorrorRSS project to make their RssParser.getDate() method protected or public. Then, I will be able to provide my own implementation that uses something like JodaTime. I think this will work. Any thoughts?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload