액티비티를 전환하는 기본적인 문제인데요
메니페스트 파일에도 액티비티 등록을 했는데 전환이 안되네요
로그캣에는 다음과 같은 오류가 뜨는데.. 어떻게 해결해야 할까요?
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.ymacbook.a1wordic/com.example.ymacbook.a1wordic.Activity_5}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1794)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1512)
at android.app.Activity.startActivityForResult(Activity.java:3917)
at android.app.Activity.startActivityForResult(Activity.java:3877)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:843)
at android.app.Activity.startActivity(Activity.java:4200)
at android.app.Activity.startActivity(Activity.java:4168)
at com.example.ymacbook.a1wordic.MainActivity$1.onClick(MainActivity.java:78)
at android.view.View.performClick(View.java:5198)
at android.view.View$PerformClick.run(View.java:21147)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
메니페스트 파일
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Activity_2"
android:label="@string/activity_2" >
</activity>
<activity
android:name=".Activity_3"
android:label="@string/activity_3" >
</activity>
<activity
android:name=".Activity_4"
android:label="@string/activity_4" >
</activity>
<activity
android:name=".Activity_5"
android:label="@string/activity_5" >
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
Activity 2, 3, 4는 화면전환이 가능한데 5가 문제네요..!