Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLuka Nixon
2,303 PointsTransition between title page and second page does not work
When i the user clicks the button to go to the second page on my app i get the error message "Unfortantely, Signal From Mars has stopped."
Here is the LogCat: 05-12 11:16:12.009: D/dalvikvm(1211): GC_FOR_ALLOC freed 62K, 5% free 2819K/2960K, paused 47ms, total 48ms 05-12 11:16:12.019: I/dalvikvm-heap(1211): Grow heap (frag case) to 4.113MB for 1350016-byte allocation 05-12 11:16:12.049: D/dalvikvm(1211): GC_FOR_ALLOC freed <1K, 4% free 4137K/4280K, paused 24ms, total 24ms 05-12 11:16:12.339: D/(1211): HostConnection::get() New Host Connection established 0xb8c24140, tid 1211 05-12 11:16:12.399: W/EGL_emulation(1211): eglSurfaceAttrib not implemented 05-12 11:16:12.409: D/OpenGLRenderer(1211): Enabling debug mode 0 05-12 11:17:04.089: D/AndroidRuntime(1211): Shutting down VM 05-12 11:17:04.089: W/dalvikvm(1211): threadid=1: thread exiting with uncaught exception (group=0xb3a68ba8) 05-12 11:17:04.119: E/AndroidRuntime(1211): FATAL EXCEPTION: main 05-12 11:17:04.119: E/AndroidRuntime(1211): Process: com.lukan.signalsfrommars, PID: 1211 05-12 11:17:04.119: E/AndroidRuntime(1211): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.lukan.signalsfrommars/com.lukan.signalsfrommars.StoryActivity}; have you declared this activity in your AndroidManifest.xml? 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1628) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1424) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.app.Activity.startActivityForResult(Activity.java:3424) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.app.Activity.startActivityForResult(Activity.java:3385) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:839) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.app.Activity.startActivity(Activity.java:3627) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.app.Activity.startActivity(Activity.java:3595) 05-12 11:17:04.119: E/AndroidRuntime(1211): at com.lukan.signalsfrommars.MainActivity.startStory(MainActivity.java:46) 05-12 11:17:04.119: E/AndroidRuntime(1211): at com.lukan.signalsfrommars.MainActivity.access$1(MainActivity.java:43) 05-12 11:17:04.119: E/AndroidRuntime(1211): at com.lukan.signalsfrommars.MainActivity$1.onClick(MainActivity.java:37) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.view.View.performClick(View.java:4438) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.view.View$PerformClick.run(View.java:18422) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.os.Handler.handleCallback(Handler.java:733) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.os.Handler.dispatchMessage(Handler.java:95) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.os.Looper.loop(Looper.java:136) 05-12 11:17:04.119: E/AndroidRuntime(1211): at android.app.ActivityThread.main(ActivityThread.java:5017) 05-12 11:17:04.119: E/AndroidRuntime(1211): at java.lang.reflect.Method.invokeNative(Native Method) 05-12 11:17:04.119: E/AndroidRuntime(1211): at java.lang.reflect.Method.invoke(Method.java:515) 05-12 11:17:04.119: E/AndroidRuntime(1211): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 05-12 11:17:04.119: E/AndroidRuntime(1211): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 05-12 11:17:04.119: E/AndroidRuntime(1211): at dalvik.system.NativeStart.main(Native Method) 05-12 11:17:07.369: I/Process(1211): Sending signal. PID: 1211 SIG: 9
1 Answer
Evan Anger
Treehouse Guest TeacherTakes awhile to get good at diagnosing errors in logcat. I've had this issue several times before and was able to spot this as possible culprit to your issue.
{com.lukan.signalsfrommars/com.lukan.signalsfrommars.StoryActivity}; have you declared this activity in your AndroidManifest.xml?
I'd verify that you declared this activity in your android manifest.