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 Build a Blog Reader Android App Adapting Data for Display in a List Cleaning Up Our Presentation

Quiz Error, wrong answer: "In an Activity, the correct way to get the TextView with an ID of "empty" is:"

The quiz question I have a concern about is "In an Activity, the correct way to get the TextView with an ID of "empty" is:"

Two of the choices are: A. findViewById(R.id.empty) B. getListView().getEmptyView()

Granted, I know the video talked about and used B, but that is only with a ListActivity. A regular Activity as stated in the question does not have getListView(), so I chose A, which was marked wrong.

So, I'm thinking that either the question or answer is mistaken.

Did anybody else catch this or find this confusing?

Wesley Seago
Wesley Seago
10,424 Points

When I took this test, I interpreted the question the same as you. The context of the question was during the ListActivity portion of the application, so I took it with a grain of salt, but yes, you are correct.