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

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

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. AT commands out of android

I am running Android on a VMWare machine. I managed to get the ril
daemon running by putting this at the end of init.rc which I got from
another post.

End of init.rc file:

service ril-daemon /system/bin/rild -l /system/lib/
-- -d /dev/ttyS0
    socket rild stream 660 root radio
    socket rild-debug stream 660 radio system
    user root
    group radio cache inet misc

I also modifed the file init.eee_701.rc to make
    setprop yes
    setprop no

instead of the
    setprop no
    setprop yes

that is was before.

I have no idea whether that was important to get the ril running. I'm
not sure how this file relates init.rc either.

Anyway doing a logcat -b radio in android on my vmware i can see
messages like

Opening tty device /dev/ttyS0
Connected to 'rild' socket

I am set vmware's serial port to write to a file. So anything that
goes out from /dev/ttyS0 will appear on this file and I was expecting
to see AT commands.

I fired up the dialer application and dial a number but I go the no
service prompt. I checked the logcat and there was extra lines like


so can I assume my rild daemon is running ok as I am getting RILJ and
GSM logs in logcat.

Question is why wasn't there any AT commands in the logcat or my
serial port file?


2. How to make Ethernet work on EeePC

Can you check whether eth0 exist or not by issuing: netcfg?
If it exisits, you can try:
#netcfg eth0 dhcp
Hope it helps!


3. Validation of the phone number:

4. setTextFilterEnabled(true) and onKeyDown

5. LinearLayout in gallery widget

6. Backlight adjustment on Eee PC and other platforms

7. A Call to Action: Leverage DHS Sponsored Coverity Scan Projec