iso3 국가 코드를 얻는 방법. 내가 서버를 저장하지만 데이터베이스를 100 % 저장하지 않습니까? 나는 ...이 code.Please 나에게 감사와 사전에 도움 사용하고iso 국가 코드 받기
geocoder = new Geocoder(this);
locationManager = (LocationManager)getSystemService(LOCATION_SERVICE);
Criteria criteria = new Criteria();
bestProvider =locationManager.getBestProvider(criteria,false);
location = locationManager.getLastKnownLocation(bestProvider);
if(location!=null)
{
lat=location.getLatitude();
lng=location.getLongitude();
}
else
{
location = new Location("");
location.setLatitude((double)38.0000000000);
location.setLongitude((double)-97.0000000000);
lat =location.getLatitude();
lng=location.getLongitude();
}
Log.e("","Latitude and Longitude"+"Latitude="+lat+"Longitude="+lng);
try
{
addresses=geocoder.getFromLocation(lat,lng, 1);
}
catch (IOException e)
{
e.printStackTrace();
}
if (addresses != null && addresses.size() > 0)
{
Address address = addresses.get(0);
Log.e("Address=",""+address);
locale = address.getCountryCode();
Log.e("Locale",""+locale);
Toast.makeText(SongsList.this, "LocaleName"+locale,Toast.LENGTH_LONG).show();
}
, 나는 두 개의 모바일 삼성 갤럭시 에이스를 가지고 htc의 Desire.HTC 욕망이 (IND) 제대로 작동과 삼성 갤럭시 에이스 국가 코드 영국 (GRB)을 얻습니다. –
대답이 있습니까? –
제발 고마워요 도와주세요 .. –