[android-developers] Re: Parsing Dates in other Locales
All the more a reason for me to switch to android.text.format, because that one DOES have those strings in several languages - but I can't see a replacement for SimpleDateFormat.parse(). Is there no way other than writing my own parser? On May 29, 2009 1:37 PM, Urs Grob grob@gmail.com wrote: I think this is because many locales are not included in the cupcake release due to size issues. (even less were included in the 1.0 and 1.1 releases) Locales.getAvailableLocales() should return all locales that are supported. The goal will be to include all the locales ICU has to offer. But this is a mid term goal because of the already mentioned size issues. If you try to format a date with a locale that's not available I think it'll just return the number as a fallback. The same should apply to weekday names. -- Urs On Fri, May 29, 2009 at 5:54 PM, EboMike ebom...@gmail.com wrote: I need to parse a date using a flexible date format (like MM/dd/ or dd-MMM), and so far I've always used SimpleDateFormat for that (since unfortunately, android.text.format.Time.parse doesn't support date format strings). This works fine in an US environment, but as soon as I switch to any other locale, MMM translates into the number of the month (i.e. it's 6 instead of Jun). This seems like a problem that's new to Cupcake, although I'm not sure. Is there any way to parse date strings in another locale other than writing my own parser? android.text.format.DateFormat.format is great for converting from date to string, but I can't find anything going the other way around. -Mike --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Hosting APKs files on site works for emulator, but not device?
Al, thanks for the reply. It's on my own server (a Linux-based Apache server), and it's a simple A HREF that goes straight to the file in the same directory. No redirection or anything. I tried it on an ADP1 and a G1, both on the T-Mobile network, and it didn't work. The emulator worked fine. The symptoms point to a proxy. On Mar 17, 2009 12:42 AM, Al Sutton a...@funkyandroid.com wrote: Does the URL you're downloading from use a redirect or something similar to get to the apk? Many free file hosting or website hosting packages use a loading page and some type of redirect (a Meta refresh tag being one example), and there have been problems with those on the device (see http://groups.google.com/group/android-developers/browse_thread/thread/b4fffb26e83d9653 for one example). Al. EboMike wrote: I'm currently hosting an app on my own server so my beta testers can test it. I'... -- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---