1.use local,like this
String sCountry = _context.getResources().getConfiguration().locale.getCountry(); //return like "CN" String,
this depends on the user configured,If the user configures the device for China and then fly to other country,this return will not change.
2.use TelephonyManager,like this
TelephonyManager tm = (TelephonyManager)this.getSystemService(this.TELEPHONY_SERVICE);
String countryCodeValue = tm.getNetworkCountryIso();
this depends on the phone's connected network,but it will not work in some devices without SIM card.