[android-developers] Re: How to make my application know where I am, in country level.

2009-02-02 Thread magicpig
Then, what is the difference between getNetworkCountryIso and getNetworkOperator? I think we can use getNetworkCountryIso, right? On Jan 22, 5:14 pm, legerb drim...@gmail.com wrote: String networkOperator = ((TelephonyManager) context .getSystemService

[android-developers] Re: How to make my application know where I am, in country level.

2009-01-22 Thread legerb
String networkOperator = ((TelephonyManager) context .getSystemService (Context.TELEPHONY_SERVICE)).getNetworkOperator(); String locationCode = networkOperator.substring(0, 3); First 3 digitis are the mcc code - Mobile Country Code which will tell you what you need. On Jan 20,

[android-developers] Re: How to make my application know where I am, in country level.

2009-01-19 Thread magicpig
Thanks for the reply. There may be some confusing in my post. Actually, I want to judge my location by the Network: http://code.google.com/android/reference/android/telephony/TelephonyManager.html#getNetworkCountryIso() http://www.nw.com/zone/iso-country-codes But I am not sure what the

[android-developers] Re: How to make my application know where I am, in country level.

2009-01-18 Thread for android
http://groups.google.com/group/android-developers/web/localizing-android-apps-draft?pli=1 On Sat, Jan 17, 2009 at 6:51 PM, magicpig zsumagic...@gmail.com wrote: Hi, I am wondering if there is such API that provides my current location, in country level, such as I am in Japan. Thanks.