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. HTML links in a TextView inside a ListView

I've got a ListView where each item in the list is contains several
controls. One of the items is a checkbox, and I can check/uncheck it
without problems.  The other items are some TextViews and a WebView.
I've got autoLink turned on and linksClickable turned on, but I can't
get links to fire up the browser when I click on them.  This applies
to both TextView and WebView.  I've tried changing the parent to a
GridView instead of a ListView, playing with setFocusable(), and all
that, but to no avail.

Is it even possible to have interaction on the TextView-based elements
of a row in a ListView?  It seems like that *should* be possible, but
I've been banging my head against this problem for a few weeks with no
progress.  What's the secret?



2. Sending a message from Service to Activity

On Thu, Jan 29, 2009 at 3:07 PM, Noonien Soong

Yes the normal ways you would talk with a service -- you can put it in the
Intent if you are starting it, or you can pass it through a call in its
interface if you are binding.

It's a convenient short-cut.  If you are philosophically opposed to such
things you can go the more formal route and make things harder on yourself.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


3. Running more than one .apk in the same process?

4. password application

5. image size

6. video playing in grayscale mode on dream

7. Gmail offline with Gears