Android

android.content.ActivityNotFoundException: Unable to find explicit activity class

com.test.dev E/AndroidRuntime: FATAL EXCEPTION: main 

    Process: com.test.dev, PID: 22294

    android.content.ActivityNotFoundException: Unable to find explicit activity class {com.test.dev/com.test.dev.PopupWebNonSideMenuActivity}; have you declared this activity in your AndroidManifest.xml?

        at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1777)

        at android.app.Instrumentation.execStartActivity(Instrumentation.java:1499)

        at android.app.Activity.startActivityForResult(Activity.java:3942)

        at android.app.Activity.startActivityForResult(Activity.java:3889)

        at android.app.Activity.startActivity(Activity.java:4213)

        at android.app.Activity.startActivity(Activity.java:4181)

        at com.ubicare.wellness.myinfo.MyInfoActivity.onMoveDetail(Unknown Source)

        at com.ubicare.wellness.myinfo.MyInfoActivity$1.onClick(Unknown Source)

        at android.view.View.performClick(View.java:5184)

        at android.view.View$PerformClick.run(View.java:20910)

        at android.os.Handler.handleCallback(Handler.java:739)

        at android.os.Handler.dispatchMessage(Handler.java:95)

        at android.os.Looper.loop(Looper.java:145)

        at android.app.ActivityThread.main(ActivityThread.java:5951)

        at java.lang.reflect.Method.invoke(Native Method)

        at java.lang.reflect.Method.invoke(Method.java:372)

        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

 

 

■원인

AndroidManifest.xml에  PopupWebNonSideMenuActivity 클래스를 정의하지않음.

 

 

■해결책

PopupWebNonSideMenuActivity 클래스 추가 후 반드시 AndroidManifest.xml 파일에 정의하여야 합니다.

<activity
    android:name=".PopupWebNonSideMenuActivity"
    android:label="@string/app_name"
    android:screenOrientation="portrait"/>

Leave a Reply

error: Content is protected !!