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) Standard ListViews Displaying List Data (or None At All)

I'm unable to navigate from MainActivity to DailyForecastActivity, onClick of the "7 Day" button.

The code that I have put in, for the navigation is:

@OnClick(R.id.dailyButton)

public void startDailyActivity(View view){

    Intent intent = new Intent(MainActivity.this, DailyForecastActivity.class);

   // Log.d("before","before intent call");

    startActivity(intent);

    // Log.d("after","after intent call");

}

When I click the button, I get a blank (white) screen. Nothing is coming up, neither the TextView, nor the gradient in the back.

In fact, the log statements aren't displayed on my Logcat either. (I did not comment them out when I was running the code).

This is the error I see:

02-16 16:32:04.830 1734-1909/system_process W/InputDispatcher: channel '49803bc com.example.vuesol.stormy/com.example.vuesol.stormy.ui.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9 02-16 16:32:04.830 1734-1909/system_process E/InputDispatcher: channel '49803bc com.example.vuesol.stormy/com.example.vuesol.stormy.ui.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 02-16 16:32:04.837 1734-6823/system_process I/WindowManager: WIN DEATH: Window{49803bc u0 com.example.vuesol.stormy/com.example.vuesol.stormy.ui.MainActivity} 02-16 16:32:04.837 1734-6823/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '49803bc com.example.vuesol.stormy/com.example.vuesol.stormy.ui.MainActivity (server)'