Geocoder geocoder = new Geocoder(this, Locale.KOREA);
List<Address> address;
try {
if (geocoder != null) {
address = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);
if (address != null && address.size() > 0) {
str = address.get(0).getAddressLine(0).toString();
}
}
} catch (IOException e) {
Log.e("MainActivity", "주소를 찾지 못하였습니다.");
e.printStackTrace();
}
위와같이 코드를 넣었더니 실행하면 렉걸려서 폰이거의 정지상태가 되더라구요...왜이런걸까요