제가 내일 졸업작품전인데...  정말 급합니다...ㅠㅠㅠ 안드로이드 고수님들 제발 많이들 도와주세요..

handler 함수에서 값을 받아 다른 함수로 넘어가는거....가 안되고있습니다.

로그캣을 보면 지피에스 기다림후에 handler 함수로 넘어가질못하고있습니다.

SMSUtil.sendSMS(this, address, text ); 값을 str로 바꾸면 아주 잘됩니다.

그러니까 text가 gps 좌표값을 받아오는건데 왜안되는지좀...알려주세요.ㅠ.ㅠ.

 

public class HelloFormStuff extends Activity {
 ProgressDialog myDialog;
 String text;
 Handler handler;

public void onClickExplicitIntent5(View v) {
       
       final String address = "5556";
       final String str = "dd";
       
       //String str = "geo:37.422005,-122.084095";
       
       
     
     Log.d("USER_DBG", "긴급문자임");
     
     myDialog = ProgressDialog.show(this, "" , " GPS Searching...", true, true);
     Log.d("USER_DBG", "지피에스 값을 기다림");
     handler = new Handler() {
      @Override
      public void handleMessage(Message msg) {
       Log.d("USER_DBG", "핸들러 이벤트를 받음");
       myDialog.cancel();

       if(msg.what == 1) { // 성공
        Log.d("USER_DBG", "핸들러 이벤트 = 1 성공");
        text = str+" "+msg.obj;
        System.out.println("gpszzzzzzzzzzzzzzzzzzzz");
        System.out.println(text);
       
        //bodyView.setText(text);
        Log.d("USER_DBG", "전송할문자열:"+text);
        
       } else if(msg.what == 0) { // 실패
        Log.d("USER_DBG", "핸들러 이벤트 = 0 실패");
        
       }
      }
     };
     SMSUtil.sendSMS(this, address,text );
     Log.d("USER_DBG", "쓰레드 시작하기.");
     LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
           GPSThread gpsThread = new GPSThread(handler, locationManager );
          
          
           gpsThread.start();
    }

 

에러 로그는10-26 15:54:01.345: ERROR/BatteryService(52): usbOnlinePath not found
10-26 15:54:01.345: ERROR/BatteryService(52): batteryVoltagePath not found
10-26 15:54:01.345: ERROR/BatteryService(52): batteryTemperaturePath not found
10-26 15:54:01.365: ERROR/SurfaceFlinger(52): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
10-26 15:54:05.345: ERROR/EventHub(52): could not get driver version for /dev/input/mouse0, Not a typewriter
10-26 15:54:05.345: ERROR/EventHub(52): could not get driver version for /dev/input/mice, Not a typewriter
10-26 15:54:05.615: ERROR/System(52): Failure starting core service
10-26 15:54:05.615: ERROR/System(52): java.lang.SecurityException
10-26 15:54:05.615: ERROR/System(52):     at android.os.BinderProxy.transact(Native Method)
10-26 15:54:05.615: ERROR/System(52):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
10-26 15:54:05.615: ERROR/System(52):     at android.os.ServiceManager.addService(ServiceManager.java:72)
10-26 15:54:05.615: ERROR/System(52):     at com.android.server.ServerThread.run(SystemServer.java:176)
10-26 15:54:05.615: ERROR/AndroidRuntime(52): Crash logging skipped, no checkin service
10-26 15:54:13.280: ERROR/ActivityThread(101): Failed to find provider info for android.server.checkin
10-26 15:54:14.400: ERROR/ActivityThread(101): Failed to find provider info for android.server.checkin
10-26 15:54:14.470: ERROR/ActivityThread(101): Failed to find provider info for android.server.checkin
10-26 15:54:17.350: ERROR/MediaPlayerService(31): Couldn't open fd for content://settings/system/notification_sound
10-26 15:54:17.350: ERROR/MediaPlayer(52): Unable to to create media player
10-26 15:54:23.271: ERROR/AndroidRuntime(125): ERROR: thread attach failed
10-26 15:54:25.491: ERROR/AndroidRuntime(211): ERROR: thread attach failed