안드로이드 앱 개발 고수님들..제발 도와주십시요....ㅠㅠㅠㅠㅠ
부탁드립니다.
public void onClickExplicitIntent5(View v) {
final String address = "5556";
final String str = "dd";
//String str = "geo:37.422005,-122.084095";
SMSUtil.sendSMS(this, address, str);
Log.d("USER_DBG", "내위치 정보 전송 문자임");
myDialog = ProgressDialog.show(this, "" , " GPS Searching...", true, true);
Handler handler = new Handler() {
@Override
public void handleMessage(Message msg) {
Log.d("USER_DBG", "핸들러 이벤트를 받음");
myDialog.cancel();
if(msg.what == 1) { // 성공
Log.d("USER_DBG", "핸들러 이벤트 = 1 성공");
String text = str+" "+msg.obj;
System.out.println("gpszzzzzzzzzzzzzzzzzzzz");
System.out.println(text);
}
}
}
저 핸들러 안에있는 text값을 onClickExplicitIntent5에 있는 곳으로 값을 가져오면 text에 빨간줄이 가입니다..ㅠㅠㅠ
저 값을 가져오려면 어떻게 해야하는지 좀 알려주세요....무엇을 써야하는지도요..ㅠ.ㅠ.ㅠ
제발 부탁드립니다.. 내일이 졸작인데... 이거때문에 일주일이상을 고생한거같습니다...
어떻게해도안되네요...부탁드립니다....ㅠㅠ
에러 로그는 이겁니다
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




지역변수를 전역으로 빼면 됩니다.