앱개발 Q&A


앱개발 Q&A
앱 개발과 관련된 질문과 답을 쓰고 공유할 수 있는 곳입니다.
has stopped 문제
ids1605
이미지 슬라이더 보기
public void onButton1Clicked(View v){
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://m.naver.com"));
startActivity(myIntent);
}

public void onButton2Clicked(View v){
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("tel:010-1000-1000"));
startActivity(myIntent);
}
public void onButton3Clicked(View v){
Intent Intent = new Intent(getApplicationContext(), MenuActivity.class);
startActivity(Intent);
}

09-14 15:06:17.429 2382-2382/org.androidtown.hello E/AndroidRuntime: FATAL EXCEPTION: main
                                                                     Process: org.androidtown.hello, PID: 2382
                                                                     java.lang.IllegalStateException: Could not execute method for android:onClick
                                                                         at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
                                                                         at android.view.View.performClick(View.java:5637)
                                                                         at android.view.View$PerformClick.run(View.java:22429)
                                                                         at android.os.Handler.handleCallback(Handler.java:751)
                                                                         at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                         at android.os.Looper.loop(Looper.java:154)
                                                                         at android.app.ActivityThread.main(ActivityThread.java:6119)
                                                                         at java.lang.reflect.Method.invoke(Native Method)
                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
                                                                      Caused by: java.lang.reflect.InvocationTargetException
                                                                         at java.lang.reflect.Method.invoke(Native Method)
                                                                         at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
                                                                         at android.view.View.performClick(View.java:5637) 
                                                                         at android.view.View$PerformClick.run(View.java:22429) 
                                                                         at android.os.Handler.handleCallback(Handler.java:751) 
                                                                         at android.os.Handler.dispatchMessage(Handler.java:95) 
                                                                         at android.os.Looper.loop(Looper.java:154) 
                                                                         at android.app.ActivityThread.main(ActivityThread.java:6119) 
                                                                         at java.lang.reflect.Method.invoke(Native Method) 
                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 
                                                                      Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=http://m.naver.com/... }
                                                                         at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809)
                                                                         at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
                                                                         at android.app.Activity.startActivityForResult(Activity.java:4225)
                                                                         at android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:54)
                                                                         at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:75)
                                                                         at android.app.Activity.startActivityForResult(Activity.java:4183)
                                                                         at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:708)
                                                                         at android.app.Activity.startActivity(Activity.java:4522)
                                                                         at android.app.Activity.startActivity(Activity.java:4490)
                                                                         at org.androidtown.hello.MainActivity.onButton1Clicked(MainActivity.java:19)
                                                                         at java.lang.reflect.Method.invoke(Native Method) 
                                                                         at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288) 
                                                                         at android.view.View.performClick(View.java:5637) 
                                                                         at android.view.View$PerformClick.run(View.java:22429) 
                                                                         at android.os.Handler.handleCallback(Handler.java:751) 
                                                                         at android.os.Handler.dispatchMessage(Handler.java:95) 
                                                                         at android.os.Looper.loop(Looper.java:154) 
                                                                         at android.app.ActivityThread.main(ActivityThread.java:6119) 
                                                                         at java.lang.reflect.Method.invoke(Native Method) 
                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 

ㅇ
코드 책에 있는거 그대로 썼는데 네이버창 뜨게하는 버튼을 누르면 왜 이런오류가 나오는건가요?
2017-09-15 00:31:06
118.220.104.***
덧글 0개 | 태그 0개
태그입력
쉽표(,)구분으로 한번에 여러 태그를 입력할수 있습니다
이름 비밀번호