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 trial

Android Android Lists and Adapters (2015) Using Parcelable Data Retrieving Parcelable Data

i m trying to retrieving parcelable data but when i clicked on 7 day button my application crashes

02-06 15:45:13.342 23631-23746/teamtreehouse.com.stormy I/MainActivity: From JSON: Asia/Kolkata 02-06 15:45:13.345 23631-23746/teamtreehouse.com.stormy D/MainActivity: 3:45 PM 02-06 15:45:15.426 23631-23631/teamtreehouse.com.stormy D/ActivityThread: ACT-AM_ON_PAUSE_CALLED ActivityRecord{cd74c81 token=android.os.BinderProxy@7d21167 {teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity}} 02-06 15:45:17.725 23631-23631/teamtreehouse.com.stormy V/ActivityThread: Finishing stop of ActivityRecord{cd74c81 token=android.os.BinderProxy@7d21167 {teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity}}: show=false win=com.android.internal.policy.PhoneWindow@f3bc68e 02-06 15:45:17.726 23631-23631/teamtreehouse.com.stormy V/PhoneWindow: DecorView setVisiblity: visibility = 4 ,Parent =ViewRoot{51b893 teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity,ident = 0}, this =com.android.internal.policy.PhoneWindow$DecorView{29d19b2 I.E...... R......D 0,0-720,1280} 02-06 15:45:19.800 23631-23631/teamtreehouse.com.stormy V/ActivityThread: Performing resume of ActivityRecord{cd74c81 token=android.os.BinderProxy@7d21167 {teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity}} 02-06 15:45:19.801 23631-23631/teamtreehouse.com.stormy D/ActivityThread: ACT-AM_ON_RESUME_CALLED ActivityRecord{cd74c81 token=android.os.BinderProxy@7d21167 {teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity}} 02-06 15:45:19.801 23631-23631/teamtreehouse.com.stormy V/ActivityThread: Resume ActivityRecord{cd74c81 token=android.os.BinderProxy@7d21167 {teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity}} started activity: false, hideForNow: false, finished: false 02-06 15:45:19.801 23631-23631/teamtreehouse.com.stormy V/ActivityThread: Resuming ActivityRecord{cd74c81 token=android.os.BinderProxy@7d21167 {teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity}} with isForward=false 02-06 15:45:19.802 23631-23631/teamtreehouse.com.stormy V/PhoneWindow: DecorView setVisiblity: visibility = 0 ,Parent =ViewRoot{51b893 teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity,ident = 0}, this =com.android.internal.policy.PhoneWindow$DecorView{29d19b2 V.E...... R.....ID 0,0-720,1280} 02-06 15:45:19.802 23631-23631/teamtreehouse.com.stormy V/ActivityThread: Scheduling idle handler for ActivityRecord{cd74c81 token=android.os.BinderProxy@7d21167 {teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity}} 02-06 15:45:19.823 23631-23747/teamtreehouse.com.stormy D/OpenGLRenderer: CanvasContext() 0x7f84a45000 initialize window=0x7f8629f010, title=teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity 02-06 15:45:21.223 23631-23631/teamtreehouse.com.stormy D/ViewRootImpl: doProcessInputEvents ViewRoot{51b893 teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity,ident = 0} 02-06 15:45:21.239 23631-23631/teamtreehouse.com.stormy D/ActivityThread: ACT-AM_ON_PAUSE_CALLED ActivityRecord{cd74c81 token=android.os.BinderProxy@7d21167 {teamtreehouse.com.stormy/teamtreehouse.com.stormy.MainActivity}}

Seth Kroger
Seth Kroger
56,412 Points

There's no actual crash reported in that log. I think it would be better to share your code and a description of what happens when you press the button.

2 Answers

Sachin Jayaram
Sachin Jayaram
5,461 Points

In your DayAdapter.java int eh getView class check if you are returning null. If so return convertView and it should work :)

sent the code