Reputation: 6342
I'm trying to find a way of checking if the user is in the US, and do it somehow that it's instant. This means no GPS, and no internet. I have a few ideas, but they're not as accurate as I'd want, so maybe someone here has some tricks up his/her sleeves.
Thanks!
Upvotes: 0
Views: 2249
Reputation: 3968
I've just been looking at http://developer.android.com/guide/topics/resources/providing-resources.html and on table 2 there's some resource qualifiers for 'MCC and MNC' and 'Language and region'.
What about defining some resource, say a string indicating the country code, then setting up a different one for each country you are interested in.
You could then look at the string to see what country you are in. I guess you'd need a bit of experimentation to see what works best, but it might work :-)
Upvotes: 5