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 trialnathan Wohlwend
333 Pointscontinues to close app inside emulator prompting the message "Unfortunately, crystal ball has stopped working".
how do i go about fixing this before i move on?
3 Answers
Matheus G Oliveira
9,682 PointsHi Nathan,
i would recommend you checking the videos again because there is some little mistake on your code.
With that information that is everything i can tell you. For better results you can post the code here so we could check
Gergő Bogdán
6,664 PointsThe error which you get should appear in Eclipses LogCat window, paste that here so we can help.
Endre Juhasz
613 PointsHere's my logcat on the same problem:
08-03 20:21:20.302 1629-1629/com.example.kn101.crystalball E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.kn101.crystalball, PID: 1629 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.kn101.crystalball/com.example.kn101.crystalball.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258) at android.app.ActivityThread.access$800(ActivityThread.java:138) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5026) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) at dalvik.system.NativeStart.main(Native Method) Caused by: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar. at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:275) at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2872) at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3129) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:303) at android.app.Activity.setContentView(Activity.java:1930) at com.example.kn101.crystalball.MainActivity.onCreate(MainActivity.java:14) at android.app.Activity.performCreate(Activity.java:5242) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258) at android.app.ActivityThread.access$800(ActivityThread.java:138) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5026) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) at dalvik.system.NativeStart.main(Native Method)