I had the same issue trying to parse this date string: "Sat, 04 Sep
2010 01:50:17 +0000"
with this: SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss ZZZZ").
That was working perfectly on Android 2.2.

I tried the app on a non-english Android 1.5 device and that didn't
work any more.
I fixed my problem by forcing the English locale like this:
SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss ZZZZ", Locale.ENGLISH)
Now the date string is parsed correctly on Android 1.5 and 2.2 (I
assume any 1.5+).

Hope it helps someone else.

12% are still using Android 1.5 ;(

Mathieu

On Aug 9, 5:05 am, mot12 <martin.hu...@gmail.com> wrote:
> I had similar problems and have been using
> android.text.format.DateFormat instead:
> DateFormat.format("EEE", cal)
>
> Martinwww.mobitobi.com
> Gentle Alarm
> Sleep Now!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to