[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-09-14 Thread Mathieu - gpmoo7
I had the same issue trying to parse this date string: Sat, 04 Sep 2010 01:50:17 + with this: SimpleDateFormat(EEE, dd MMM HH:mm:ss ). 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

Re: [android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-09-14 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/13/10 00:32 , Mathieu - gpmoo7 wrote: Hope it helps someone else. 12% are still using Android 1.5 ;( I can confirm that there's a locale problem on some gear with 1.5. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s.

[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-08-09 Thread mot12
I had similar problems and have been using android.text.format.DateFormat instead: DateFormat.format(EEE, cal) Martin www.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

[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-08-07 Thread Tim Su
I had one of my users perform the following tests. They have an HTC Desire running Froyo and have the locale set to French. new SimpleDateFormat(, d ).format(new Date()) new SimpleDateFormat(, d , Locale.FRENCH).format(new Date()) new SimpleDateFormat(, d ,

[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-08-07 Thread DanH
Interesting. This suggests that something is broken in the actual Java JDK stuff. On Aug 7, 6:32 pm, Tim Su t...@todoroo.com wrote: I had one of my users perform the following tests. They have an HTC Desire running Froyo and have the locale set to French. new SimpleDateFormat(, d

Re: [android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-08-06 Thread { Devdroid }
On 5 August 2010 14:53, DanH danhi...@ieee.org wrote: Has anyone tried doing Locale.setDefault to circumvent this problem? The problem is when you do not care what locale are set and simply want to use system-wide, not any particular one. Calling setDefault is same like passing locale to

[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-08-06 Thread DanH
Right. What I was suggesting was to try setting locale in order to test the hypothesis that lack of a locale is causing the symptoms, vs, eg, something broken in the date formatter logic. And it would provide a circumvention for those who need one. On Aug 6, 4:37 am, { Devdroid }

[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-08-05 Thread DanH
Has anyone tried doing Locale.setDefault to circumvent this problem? On Aug 5, 7:15 am, { Devdroid } webnet.andr...@gmail.com wrote: On 3 August 2010 13:30, Mark Murphy mmur...@commonsware.com wrote: We got same problem on Desire, so it looks like device firmware issue. Somebody with a

[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-08-02 Thread DanH
I would be suspicious that the application is not finding its locale information, and is therefore defaulting to non-textual data. On Aug 2, 5:05 pm, Thierry Legras tleg...@gmail.com wrote: Hi Sasikumar, Could you find a solution to this problem? I have been reported same issue on HTC Desire

[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-08-02 Thread Sasikumar.S
@Thierry Till Now I didn't got any solution for this. On Aug 3, 3:05 am, Thierry Legras tleg...@gmail.com wrote: Hi Sasikumar, Could you find a solution to this problem? I have been reported same issue on HTC Desire 2.2 new update and also on some custom ROM. The format i use is this one:

[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-04-30 Thread Kumar Bibek
You would have changed your code. Do have a look. Thanks and Regards, Kumar Bibek On Apr 30, 4:40 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi,, when we are using simpledateformat MMM it should return month abbrevation. Example :- If it is a june month it should return jun. But in