// GPS 사용유무 가져오기
if(gps.isGetLocation()){
double latitude = gps.getLatitude();
double longitude = gps.getLongitude();
txtLat.setText(String.valueOf(latitude));
txtLon.setText(String.valueOf(longitude));
Toast.makeText(getApplicationContext(),
"당신의 위치 - \n위도:"+latitude+"\n경도:"+longitude,
Toast.LENGTH_LONG).show();
}else{
//GPS를 사용할 수 없으므로
gps.showSettingsAlert();
}
}
//파일쓰기
String content = new String("");
writeFile(file, content.getBytes());
new String(" ")이 안에 gps좌표값을 넣어야하는데 좌표값이 double 형으로 좌표값을 가져오는것이여서
gps좌표값을 어떻게 넣어야 할까요.
아시는분은 답변 부탁드리겠습니다.