How detect user locale to switch application into the good locale?

by croco » Wed, 23 Sep 2009 05:14:22 GMT


Sponsored Links
 Hi all,

My I18n files are ready but i can't find the way to detect the locale
of the android user to do the good switch ?

Thank you for your support.

Croco
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Market alternatives

Hi,

it seems like the number of alternative markets is exploding recently.
Every other week I seem to get another invitation.
Even in Germany, which is one of the few countries where you can pay
and receive payments, (at least?) three big alternative markets were
opened within the last few months.
While I can understand why there are so many alternatives, I'm a bit
concerned about this trend. I'd prefer *not* having to upload my app
to about two dozens of alternative stores with different registration
requirements, payment options, and languages I only partially
understand thanks to Google Translate.

Sometimes I wonder why Google even bothered to start an own
"centralized" Market if at the end of the day
- developers need to upload their apps to more stores than ever
existed for Palm and Windows Mobile (combined)
- people in most countries can't pay for apps, and in even more
countries can't receive money for their apps (not to mention the
available payment possibilities aren't common in all of the supported
countries...)
- users have to know the exact name of the desired app to find it, or
need either forums or lots of luck to find one fitting their needs
(nitpicking search that wouldn't find "markets" if you searched for
"market", no keywords, no filters, no sorting of search results, ...)
- lots of devices are excluded because they miss required hardware
- apps temporarily vanish for some users every now and again

The only advantage Google's Market seems to have is that it actually
regards other limitations than the Android version, like supports-
screens, uses-feature/-configuration, etc., unlike most alternatives.
But this advantage's spoiled as well if users prefer the alternatives.

How's your response to the Market fragmentation? Do you still upload
only to Google's Market to simplify updates, support a single place to
go, and hope it get's better one day? Do you support some selected
alternatives? (Which ones and why?) Or any alternative you get to know
and are able to support?

Regards,
Mort

-- 

2. Zygot exits in a loop

Hello,

I am trying to port Android to a custom ARM device I have here. The
boot process starts bootanim, it runs for a bit, then restarts. It
never gets further. In serial console I see this:

[ 1354.390496] init: waitpid returned pid 88, status = 00000009
[ 1354.417704] init: process 'bootanim', pid 88 exited
[ 1354.478037] init: waitpid returned pid 44, status = 00000009
[ 1354.495384] init: process 'zygote', pid 44 exited
[ 1354.510140] init: process 'zygote' killing any children in process
group
[ 1354.530832] request_suspend_state: wakeup (3->0) at 77191568646
(2000-01-05 02:21:31.141741544 UTC)
[ 1354.558050] init: service 'media' is being killed
[ 1354.574626] init: starting 'media'
[ 1354.590025] init: starting 'zygote'
[ 1354.618234] init: waitpid returned pid 45, status = 0000000f
[ 1354.642714] init: Created socket '/dev/socket/zygote' with mode
'666', user '0', group '0'
[ 1354.668280] init: untracked pid 45 exited
[ 1380.371337] init: starting 'bootanim'
[ 1407.551103] init: waitpid returned pid 142, status = 00000009
[ 1407.588977] init: process 'bootanim', pid 142 exited
[ 1407.605930] init: waitpid returned pid 123, status = 00000009
[ 1407.624024] init: process 'zygote', pid 123 exited
[ 1407.639244] init: process 'zygote' killing any children in process
group
[ 1407.660305] request_suspend_state: wakeup (0->0) at 130321196644
(2000-01-05 02:22:24.271368927 UTC)
[ 1407.688349] init: service 'media' is being killed
[ 1407.705206] init: starting 'media'
[ 1407.720714] init: starting 'zygote'
[ 1407.762500] init: Created socket '/dev/socket/zygote' with mode
'666', user '0', group '0'
[ 1407.798410] init: waitpid returned pid 122, status = 0000000f
[ 1407.817412] init: untracked pid 122 exited
[ 1432.945955] init: starting 'bootanim'
[ 1460.235224] init: waitpid returned pid 172, status = 00000009
[ 1460.275483] init: process 'bootanim', pid 172 exited
[ 1460.292262] init: waitpid returned pid 158, status = 00000009
[ 1460.310282] init: process 'zygote', pid 158 exited
[ 1460.325991] init: process 'zygote' killing any children in process
group
[ 1460.347248] request_suspend_state: wakeup (0->0) at 183008296330
(2000-01-05 02:23:16.958469536 UTC)
[ 1460.377591] init: service 'media' is being killed
[ 1460.393819] init: starting 'media'
[ 1460.414271] init: starting 'zygote'
[ 1460.436018] init: waitpid returned pid 157, status = 0000000f
[ 1460.465821] init: Created socket '/dev/socket/zygote' with mode
'666', user '0', group '0'
[ 1460.491307] init: untracked pid 157 exited
[ 1485.619588] init: starting 'bootanim'
[ 1512.406315] init: waitpid returned pid 201, status = 00000009
[ 1512.434224] init: process 'bootanim', pid 201 exited
[ 1512.483122] init: waitpid returned pid 186, status = 00000009
[ 1512.500966] init: process 'zygote', pid 186 exited
[ 1512.516113] init: process 'zygote' killing any children in process
group
[ 1512.537293] request_suspend_state: wakeup (0->0) at 235198490184
(2000-01-05 02:24:09.148662159 UTC)
[ 1512.566563] init: service 'media' is being killed
[ 1512.584271] init: starting 'media'
[ 1512.603467] init: waitpid returned pid 185, status = 0000000f
[ 1512.622079] init: untracked pid 185 exited
[ 1512.638978] init: starting 'zygote'
[ 1512.665461] init: Created socket '/dev/socket/zygote' with mode
'666', user '0', group '0'
[ 1537.830871] init: starting 'bootanim'




The system is PXA272-based, and I am using 2.6.32 kernel and latest
android bits (just checked out a few days back)

does anyone have any pointers for me to help debug this issue?

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. android.os.Parcel.readException(Parcel.java:1224)

4. Changing Window's PixelFormat and annoying blink.

5. Monkey Questions

6. Format or example required for writing script for monkey tool

7. Simple Key Event Questions