Are DateFormat and DateUtils supposed to be returning localized strings (1.5 emulator)?

by adamphillips12 » Thu, 14 May 2009 01:25:03 GMT


Sponsored Links
 Hi,

I'm currently testing localization on the 1.5 emulator (with sdk
target of 3), I'm using the Custom Locale app to apply different
locales and also I've tried setting it from Settings also. This seems
to update what loads from the res/ folder, so I'm sure this is being
applied.

However I'm trying to use the two classes
android.text.format.DateFormat and android.text.format.DateUtils,
neither seem to be returning localized strings and neither have any
option of setting the locale manually. The documentation suggests that
they should be returning localized strings. Especially
DateUtils.getMonthString() which explicitly states it. Am I missing
something on how to use these classes? I can see in the
android.R.string plenty of related string items fully translated.

If they are meant to be returning localized strings, could someone
please post an example?

Thanks :)

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Shutdown from Android Kernel

I need an API which will shutdown/hibernate the device?
This API needs to be called from the kernel driver.
There is an API in pm.h
device_power_down(PMSG_HIBERNATE);
is this correct?

Thanks,
Sachin, Pune.

-- 

2. midi engine for music apps

Hi,

I tried music application using SDK in Andriod,when i run the application i
am getting time delay between two sounds.I have tried almost all the midi
engines and i searched for the solution that using SDK there would be the
latency .If we use NDK it will reduce the latency.Can you please suggest me
what are all the midi engines used in NDK.I am Working on Linux platform.



*Thanks&Regards*

Lalitha

-- 

3. How to use 3G Connection in Android Application instead of Wi-fi?

4. Estimated Time App Verification

5. GK : bunddle the multiple apks to one apk

6. GK: Urgent -- Combine all the multiple apks in one APK file

7. android develope