[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
 (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, 6:05 am,magicpigzsumagic...@gmail.com wrote:

  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/TelephonyM...

  But I am not sure what the returned value will be.

  Any hint?

  On Jan 18, 7:29 pm, for android forandr...@gmail.com wrote:

  http://groups.google.com/group/android-developers/web/localizing-andr...

   On Sat, Jan 17, 2009 at 6:51 PM,magicpigzsumagic...@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.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, 6:05 am, magicpig zsumagic...@gmail.com wrote:
 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/TelephonyM...()http://www.nw.com/zone/iso-country-codes

 But I am not sure what the returned value will be.

 Any hint?

 On Jan 18, 7:29 pm, for android forandr...@gmail.com wrote:

 http://groups.google.com/group/android-developers/web/localizing-andr...

  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.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 returned value will be.

Any hint?

On Jan 18, 7:29 pm, for android forandr...@gmail.com wrote:
 http://groups.google.com/group/android-developers/web/localizing-andr...

 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.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---