I have simple Registration Activity, where I have Country name field. But I need to get the Country name of the user automatically and make that field Non-editable.
I can get the country name using GPS, but the user may wonder why he need Location permission.
What I tried:
I already see
How to get country name in android?
Get location name from fetched coordinates
Using User Locale
String country = getApplicationContext().getResources().getConfiguration().locale.getDisplayCountry();
with this, I can get the country name based on language settings of the user. The problem with this method is, 99% of User set their language to English-US so I don't achieve what I want.
Is there any way to get Country name other than above methods.
Hope is should be a way to get Country name (example by network properties or system properties or sim services ), Is There ???
Note: My application have SMS registration process (app is free in google play store, but payment has to done by SMS), I gave full access of app to some countries for free of cost.(Its depend on county names)
Appreciate your help.