에러는 다음과 같구요
구동은 되는데 중간에 멈추는군요
02-17 19:12:25.094: ERROR/SUPLJ(22480): IOException
02-17 19:12:25.094: ERROR/SUPLJ(22480): java.io.IOException: Unresolved host address!
02-17 19:12:25.094: ERROR/SUPLJ(22480): at com.motorola.android.locationproxy.SuplDataService.openPlainTextConnection(SuplDataService.java:255)
02-17 19:12:25.094: ERROR/SUPLJ(22480): at com.motorola.android.locationproxy.SuplDataService.handleMessage(SuplDataService.java:113)
02-17 19:12:25.094: ERROR/SUPLJ(22480): at android.os.Handler.dispatchMessage(Handler.java:99)
02-17 19:12:25.094: ERROR/SUPLJ(22480): at android.os.Looper.loop(Looper.java:123)
02-17 19:12:25.094: ERROR/SUPLJ(22480): at com.android.server.LocationProxyService.run(LocationProxyService.java:344)
02-17 19:12:25.094: ERROR/SUPLJ(22480): at java.lang.Thread.run(Thread.java:1096)
02-17 19:12:49.016: ERROR/Sensors(22480): Couldn't find or open 'sensors' driver (No such file or directory)
02-17 19:13:05.344: ERROR/AndroidRuntime(23061): ERROR: thread attach failed
02-17 19:13:06.907: ERROR/AndroidRuntime(23072): ERROR: thread attach failed
02-17 19:13:25.477: ERROR/AndroidRuntime(23086): ERROR: thread attach failed
위도 경도값은 얻어오지만 그 다음 주소값 불러오는 부분 구현이 잘못된것 같습니다..
// 텍스트뷰를 찾는다 tvLatitude = (TextView)findViewById(R.id.tvLatitude); tvLongitude = (TextView)findViewById(R.id.tvLongitude); // LocationListener의 핸들을 얻는다 lm =(LocationManager)getSystemService(Context.LOCATION_SERVICE); //GPS 위치 서비스에 연결한다 Location loc = lm.getLastKnownLocation("gps"); if(loc!=null) { // TextView를 채운다 tvLatitude.setText(Double.toString(loc.getLatitude())); tvLongitude.setText(Double.toString(loc.getLongitude())); // Location Manager에게 위치정보를 업데이트해달라고 요청한다. locListenD = new DispLocListener(); lm.requestLocationUpdates("gps", 30000L, 10.0f, locListenD); double d1 = Double.valueOf("tvLatitude").doubleValue(); double d2 = Double.valueOf("tvLongitude").doubleValue(); Geocoder geocodergeocoder = new Geocoder(Context, Locale.KOREAN); try { List myList = geocodergeocoder.getFromLocation(d1, d2, 1); tvAddress.setText(Double.toString(loc.getLongitude())); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } else { Log.d("location", "location is null"); }