Country code from Location API

by mboehmer » Thu, 19 May 2011 17:30:18 GMT

Sponsored Links
 Is it possible to get a country code for the user's current location from 
the location API? Or from somewhere else?


Re: Country code from Location API

by gaurav gupta » Thu, 19 May 2011 18:42:14 GMT

 Hi , i can provide u api for finding country name and city name using
longitute and latitute.
in this api u can get country code too.
its api is mainly for weather report but u can use it, here a tag
<country>IN</country> gives country code.
i hope it will work for u ,77.1265769


chk these tags of this will work 4 u.
u just change longitute and latitute in this url u will get the anycountry's


Sponsored Links

Re: Country code from Location API

by Matthias B枚hmer » Thu, 19 May 2011 18:52:20 GMT

 Hi, thanks! There are a lot of web services that provide country codes. But I 
would rather like to do it offline, directly on the device. Is there any 
possibility to get the country code from any API directly on the device?

Am 19.05.2011 um 12:41 schrieb gaurav gupta:


Re: Country code from Location API

by gaurav gupta » Thu, 19 May 2011 18:56:36 GMT

cant understand ur requirement. please explain,
if u want to use without any interaction of internet. then u have to make it
static and add all the list in ur String.xml 
please explain ur requirement.den anyone can help u.

2011/5/19 Matthias Bhmer <>


Other Threads

1. image on sd card

I am going to be saving some jpeg images to the sdcard and I don't
know the best way to get those images back off, one at a time.  They
will be in a folder named /sdcard/images/ I will just need one image
at a time, so this folder will act more as a cache of images pulled
from the web that will be used in the application.  Therefore, I can't
just put them in the res/drawable folder because I won't know which
images they are beforehand. Thanks for any help on the subject.


2. How to change border color for EditText?

Hi, all!

  I want to do "White Theme" in my application (black text on a white
background). I changed bgcolor for controls to white then borders of
EditTexts makes themselves invisibles. How to paint borders of
EditText to black color?



3. Strided buffer support in Camera preview callback

4. Image effectsef

5. AIDL Compiler for C/C++

6. a global high score board for android games - aHighScore

7. Multiple Icon on Android App