위치값을 실시간으로 받아와서 일정 주기마다 알아서 업데이트 하게끔 할수 있나요?
제가 구현한 부분은 처음 어플켰을때만 위치값을 받아오고, 업데이트가 바로바로 안되더라고,,,
criteria = new Criteria();
String provider = locManager.getBestProvider(criteria,true);

location = locManager.getLastKnownLocation(provider);
locManager.requestLocationUpdates(provider, 1000, 5, this);
onLocationChanged(location);
public void onProviderDisabled(String provider) {
updateWithNewLocation(null);
}
public void onLocationChanged(Location location) {
updateWithNewLocation(location);
}
private void updateWithNewLocation(Location myLocation2) {
// TODO Auto-generated method stub
String mLatLonString;
latText = (TextView) findViewById(R.id.tvLatitude);
lngText = (TextView) findViewById(R.id.tvLongitude);
   
if(location != null) {
double latPoint = location.getLatitude();
double lngPoint = location.getLongitude();

latText.setText(String.valueOf(latPoint));
lngText.setText(String.valueOf(lngPoint))
} else {
mLatLonString = "Can't find your location";
latText.setText("Location : " + mLatLonString);
lngText.setText("Location : " + mLatLonString);

}
}
이렇게 구현하였습니다...
 
고수님들 도와주세요 ㅜㅜ