Android

원격지 gps좌표르 Location 객체 반환

라면사리추가요 2011. 7. 20. 11:33

//gps 좌표로 Location 객체 생성
double lat = 37.520261;
double lon = 126.913585;
Location endLocation = new Location("gps");
endLocation.setLatitude(lat);
endLocation.setLongitude(lon);