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 trialLuke Liem
6,367 PointsIs a video missing in this section? I did not recall adding the annotation "I love android data persistence" anywhere.
The instructor moved through 6 videos of coding before doing a compile. Sure enough the app crashed on my Android device:
10-27 14:48:53.757 6215-6215/com.teamtreehouse.mememaker W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41c19da0) 10-27 14:48:53.767 6215-6215/com.teamtreehouse.mememaker E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.teamtreehouse.mememaker, PID: 6215 java.lang.NullPointerException at com.teamtreehouse.mememaker.database.MemeDatasource.open(MemeDatasource.java:37) at com.teamtreehouse.mememaker.database.MemeDatasource.readMemes(MemeDatasource.java:52) at com.teamtreehouse.mememaker.ui.fragments.MemeItemFragment.onResume(MemeItemFragment.java:91) at android.app.Fragment.performResume(Fragment.java:1743) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:924) at android.app.FragmentManagerImpl.performPendingDeferredStart(FragmentManager.java:785) at android.app.FragmentManagerImpl.startPendingDeferredFragments(FragmentManager.java:1086) at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1470) at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:479) at android.support.v13.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:145) at android.support.v4.view.ViewPager.populate(ViewPager.java:1068) at android.support.v4.view.ViewPager.populate(ViewPager.java:914) at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1436) at android.view.View.measure(View.java:17478) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5364) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.view.View.measure(View.java:17478) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5364) at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:412) at android.view.View.measure(View.java:17478) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5364) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2548) at android.view.View.measure(View.java:17478) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2262) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1391) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1590) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1249) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6585) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:803) at android.view.Choreographer.doCallbacks(Choreographer.java:603) at android.view.Choreographer.doFrame(Choreographer.java:573) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:789) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5579) 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:1268) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) at dalvik.system.NativeStart.main(Native Method) 10-27 14:48:56.867 6215-6215/com.teamtreehouse.mememaker I/Process﹕ Sending signal. PID: 6215 SIG: 9
1 Answer
Trainer Workout
22,341 PointsYou have to add the annotation in the app directly.
So once your app is working, click on a image and then click again on the image, write the text, save it, then give it a title and finally save again.
Luke Liem
6,367 PointsLuke Liem
6,367 PointsI really don't even know where to begin with respect to debugging my code.