Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

Jordan Pokladnik
Jordan Pokladnik
5,748 Points

Opening a Webpage in the Browser step 1

What am I doing wrong?

    protected void onListItemClick(ListView l, View v, int position, long id) {
        super.onListItemClick(1, v, position, id);

This seems to work for everyone else.

2 Answers

Jordan Pokladnik
Jordan Pokladnik
5,748 Points

The problem seems to be the "1". When I type in the "1" it doesn't work, but when I copy and paste it from the previous line, it works. Is that normal?

Ben Jakuben
Ben Jakuben
Treehouse Teacher

It's not a "1", it's a lowercase "L". :) This is one reason we try to avoid one-letter variable names! Silly Android engineers...

Jordan Pokladnik
Jordan Pokladnik
5,748 Points

Oh, well that explains it. Thanks!