이 코드를 사용해 보았습니다. 위치 이름을 지정하지 않았습니다. 그것은 위도와 경도만을 제공합니다.네트워크 공급자를 사용하여 현재 위치 이름 얻기
String latLongString;
if (location != null)
{
double lat = location.getLatitude();
double lng = location.getLongitude();
latLongString = "Lat:" + lat + "\nLong:" + lng;
}
else
{
latLongString = "No location found";
}
myLocationText.setText("Your Current Position is:\n" + latLongString);
실제 장치 또는 에뮬레이터를 사용하고 있습니까? – Pratik
'Location'이 제공해야하는 것은 아닌가요? –
실제 장치에서 시도하고 있지만 – vinodkumar