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

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!