intro 화면만들기
08-09 02:35:35.490 2689-2689/design.test.uk.design E/AndroidRuntime: FATAL EXCEPTION: main
Process: design.test.uk.design, PID: 2689
android.content.ActivityNotFoundException: Unable to find explicit activity class {design.test.uk.design/design.test.uk.design.MainActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1777)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1501)
at android.app.Activity.startActivityForResult(Activity.java:3745)
at android.app.Activity.startActivityForResult(Activity.java:3706)
at android.app.Activity.startActivity(Activity.java:4016)
at android.app.Activity.startActivity(Activity.java:3984)
at design.test.uk.design.IntroActivity$1.run(IntroActivity.java:19)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
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:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
intro화면을 만들었는데 실행시키니까 에러가 난다.
검색어 : have you declared this activity in your androidmanifest.xml intro
http://seungdols.tistory.com/293
androidmanifest.xml 에
<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=".IntroActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
이렇게 있던 것을
<activity android:name=".IntroActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MainActivity"></activity>
이렇게 바꿈
여기에 소스있음
'차근차근 > 안드로이드 스튜디오' 카테고리의 다른 글
네비게이션 드로어 만들기 (0) | 2016.08.10 |
---|---|
플로팅 액션 버튼 만들기 (0) | 2016.08.10 |
gson을 써보려는데... (0) | 2016.07.26 |
안드로이드 참고 링크 (0) | 2016.07.26 |
안드로이드 ajax 링크모음 (0) | 2016.07.26 |