public void onLocationChanged(Location location) {
position = (EditText)findViewById(R.id.position);
posiSave = (Button)findViewById(R.id.posiSave);
posiSave.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String inPutText = position.getText().toString();
}
});
count++;
StringBuffer buffer = new StringBuffer();
/*buffer.append("수신횟수:"+count+"\r\n");*/
buffer.append(inPutText + " 값:"+location.getLatitude()+"\r\n");
buffer.append(inPutText + " 값:"+location.getLongitude()+"\r\n");
//위치정보 출력하기
result.setText(buffer.toString());
}
};
Sting inPutText 값을 밖에서 쓸려니까 안써져요 ㅠㅠ
onClick 나와서 바로 그값을 출력하고 싶은데 buffer.append(inPutText + "값: " + location.getLatitude();"/r/n");
이렇게 해스 inPutText 값을 보이고 싶은데 어떻게 하즈엉 ㅠ???