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. Debug application running on emulator on another computer in LAN

I need to connect my Eclipse De{*filter*} to a emulator running on another
computer in LAN.
Can anyone please provide me the instruction to do this setup?



2. HTML Viewer

Hi All,

I have noticed that when viewing a HTML attachment or opening a HTML
file from the sdcard,

it will open in HTML Viewer and this viewer does not have internet

Any reason why html attachments are only viewable through HTML Viewer?
Is it to protect against malicious attachments that will download a
payload? Is that the reason why there is no internet access in the
HTML Viewer?

Is it possible to bypass this and open an attachment within the
Android browser?

Thanks In Advance,


3. showDialog(int id) vs

4. Button click Navigation not working ( application gets crashes)

5. Android 2.3.3 NFC capabilities concerns

6. Android SDK HELP

7. Backup in Android