[android-developers] figure out country in a device without SIM card

2011-02-15 Thread Leszek Koltunski
Hello Android gurus, In my game I've got a 'global leaderboard' where people submit their high scores and check how others are doing. There I display a little flag to show where a particular player is from. To figure that out, I use public String getIso() { TelephonyManager tM

Re: [android-developers] figure out country in a device without SIM card

2011-02-15 Thread Daniel Drozdzewski
On Tue, Feb 15, 2011 at 10:15 AM, Leszek Koltunski lkoltun...@gmail.com wrote: Hello Android gurus, In my game I've got a 'global leaderboard' where people submit their high scores and check how others are doing. There I display a little flag to show where a particular player is from. To

Re: [android-developers] figure out country in a device without SIM card

2011-02-15 Thread Kostya Vasilyev
Locale.getDefault(); -- Kostya 15.02.2011 13:15, Leszek Koltunski пишет: Hello Android gurus, In my game I've got a 'global leaderboard' where people submit their high scores and check how others are doing. There I display a little flag to show where a particular player is from. To figure

Re: [android-developers] figure out country in a device without SIM card

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 11:20, Kostya Vasilyev kmans...@gmail.com wrote: Locale.getDefault(); This is not a solution. I do use different locale than i should in the country i am in. Moreover, some phones does not offer certain locales so users are forced to stick with english for example. I'd go for