What Country is the User Currently In?
问题 I've looked around a bit on stackoverflow and Google Groups and haven't really found an answer for this exact question. I simply want to be able to know what country the user of an Android phone is currently in. I assume the TelephonyManager doesn't work if the user is using wifi only. Is this true? We've tried passing the user's current latitude and longitude using android.location.Geocoder, but it's really flaky. It will frequently return empty results. Sometimes we can keep asking it and