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


 http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=28.6484223 ,77.1265769



<country>IN</country>

</country_iso3166>
chk these tags of this api.it will work 4 u.
u just change longitute and latitute in this url u will get the anycountry's
code;
:)





-- 


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


 HI,
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
 http://code.google.com/apis/adwords/docs/appendix/countrycodes.html 
please explain ur requirement.den anyone can help u.

2011/5/19 Matthias Bhmer <matboeh...@googlemail.com>



-- 



Other Threads

1. Adding custom fields to license check requests using LVL

I want to cache the server response but I do not want to use an
obfuscated SharedPreference file to store license data because I have
concerns about storing the key securely. I just want to be able to
dump the encrypted response to a SharedPreference file so that nobody
else can tamper with it. It is OK if they can view it. Now, there are
obviously some parameters that are not part of the server response.
For example, the number of retries the app has made. I want to store
that along with the response. Is there any way I can append some
custom data to the license request so that the server echos it back
with the response after encrypting it? Maybe as an extra field. Will
the server append any custom data I might send to the response?

-- 

2. indexOf(ENTER)

I know this is more of a java question than a android question, but I
know most of you are pro's here an both so I'll ask it here!
Is it possible to search a string that I have taken from an edittext
for when ever the value for new line comes?
But this string might include \n so I want it to ignore that a go for
the value 10 instead. (which is the value for new line if I remember
correctly)
Is this possible or should I use something else of string when I look
for a new line?

Appreciate any answers!
//Andr

-- 

3. DevicePolicyManager - unlock method

4. [WTShare] I AM ANDROID

5. Using DISTCC to compile Native Libraries?

6. Ratingbar problem (Big Size and Wrong Star Count)

7. Why does gmail and market suddenly not connect.