I am only using the twitter4j api and I never use SimpleDateFormat
myself.

And I have this problem also when I use another api for twitter
(jtwitter).

This is my code (a part of):
client=new Twitter(user, password);

                                Query query = new Query("surrogates");
                                QueryResult result;
                                try {
                                        result = client.search(query);

                                    for (Tweet tweet : result.getTweets()) {
                                        model.add(new 
TimelineEntry(tweet.getFromUser(),
tweet.getCreatedAt().toString(), tweet.getText(),
tweet.getProfileImageUrl()));
                                    }
                                } catch (TwitterException e) {
                                        e.printStackTrace();
                                }

What is the problem for 1.5 and why does this works for 1.6?

Are do you have another API for twitter I can use or some examples? I
have used your thumbnailadapter (as example for Twitter).

Wouter

On Oct 24, 4:46 pm, Mark Murphy <[email protected]> wrote:
> Wouter wrote:
> > I am using the twitter4j api to get tweets but it takes to long to get
> > the result.
> > When I see at the log files i see this:
>
> > 10-24 16:29:19.300: INFO/Resources(12924): Loaded time zone names for
> > en_US in 2265ms.
>
> > And that per tweet. So it takes a long time before it loads this.
>
> AFAIK, it should only do this once per process in Android 1.5.
>
> > How can this be fixed for 1.5?
>
> Directly, it can't. The underlying problem is that you are trying to
> format (or perhaps parse) a date and using stuff like SimpleDateFormat.
> That is what triggers the time-zone data load.
>
> Read more here:
>
> http://code.google.com/p/android/issues/detail?id=3147
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training in Germany, 18-22 January 2010:http://bignerdranch.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to