Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • James Han
    James Han
    9,419 Points

    Code challenge: illegal start of expression?

    Posted October 13, 2018 2:26am by James Han
    James Han
    9,419 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    0 Answers

  • TOL REC
    PLUS
    TOL REC
    Courses Plus Student 11,877 Points

    Getting strange error message

    Posted April 16, 2018 3:59pm by TOL REC
    TOL REC
    Courses Plus Student 11,877 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    1 Answer

  • Kenneth Phillips
    PLUS
    Kenneth Phillips
    Courses Plus Student 10,188 Points

    NewsListener

    Posted January 7, 2018 2:08am by Kenneth Phillips
    Kenneth Phillips
    Courses Plus Student 10,188 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    1 Answer

  • Yvonne Mutangi
    Yvonne Mutangi
    4,618 Points

    Now implement this interface in the MainActivity class, but leave it blank for now.

    Posted September 13, 2017 7:14pm by Yvonne Mutangi
    Yvonne Mutangi
    4,618 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    2 Answers

  • Tinashe Gwariro
    Tinashe Gwariro
    4,691 Points

    Implementing Interface in MainAcvtivity

    Posted September 2, 2017 6:51am by Tinashe Gwariro
    Tinashe Gwariro
    4,691 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    1 Answer

  • Tendai Chirimuta
    Tendai Chirimuta
    2,825 Points

    Please help I am stuck

    Posted May 30, 2017 7:10pm by Tendai Chirimuta
    Tendai Chirimuta
    2,825 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    0 Answers

  • Jerry Yu
    PLUS
    Jerry Yu
    Courses Plus Student 5,033 Points

    Import NewsFragment in MainActivity

    Posted May 25, 2017 8:22pm by Jerry Yu
    Jerry Yu
    Courses Plus Student 5,033 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    1 Answer

  • Tendai Chirimuta
    Tendai Chirimuta
    2,825 Points

    I am failing to break this challenge.

    Posted April 25, 2017 3:51am by Tendai Chirimuta
    Tendai Chirimuta
    2,825 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    0 Answers

  • Tendai Chirimuta
    Tendai Chirimuta
    2,825 Points

    I do not know where I am losing it

    Posted April 17, 2017 9:07pm by Tendai Chirimuta
    Tendai Chirimuta
    2,825 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    0 Answers

  • Arslan Cheema
    Arslan Cheema
    572 Points

    giving me error on this line. Not sure why NewsListener listener = (NewsListener) getActivity();

    Posted April 6, 2017 5:32am by Arslan Cheema
    Arslan Cheema
    572 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    0 Answers

  • Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points

    NewsFragment NewsListener

    Posted April 4, 2017 12:11pm by Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    0 Answers

  • Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points

    newsFragment

    Posted April 4, 2017 10:40am by Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    0 Answers

  • ahmed alghafli
    ahmed alghafli
    3,446 Points

    i don't know what's wrong with it , i did like what the question says so please let me know what i am missing her ?

    Posted April 4, 2017 6:10am by ahmed alghafli
    ahmed alghafli
    3,446 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    1 Answer

  • Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points

    NewsFragment implementation in MainActivity

    Posted April 3, 2017 11:22am by Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    1 Answer

  • Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points

    NewsFragment implements in MainActivity

    Posted April 3, 2017 11:05am by Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    2 Answers

  • REINHARD CHEFU
    REINHARD CHEFU
    5,163 Points

    handling clicks.

    Posted March 22, 2017 9:35pm by REINHARD CHEFU
    REINHARD CHEFU
    5,163 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    0 Answers

  • TERRENCE MAVHUNGA
    TERRENCE MAVHUNGA
    6,053 Points

    im failling to implement help. thanx

    Posted March 8, 2017 3:32pm by TERRENCE MAVHUNGA
    TERRENCE MAVHUNGA
    6,053 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    0 Answers

  • venkateshgangietti
    venkateshgangietti
    6,226 Points

    in implemeting interface methods there is no syntax error

    Posted February 7, 2017 1:42am by venkateshgangietti
    venkateshgangietti
    6,226 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    2 Answers

  • Tefo Temba Kebitseng
    Tefo Temba Kebitseng
    6,049 Points

    Handling Clicks challenge 2 of 2

    Posted December 19, 2016 11:23am by Tefo Temba Kebitseng
    Tefo Temba Kebitseng
    6,049 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    1 Answer

  • Sergio Mesquita
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sergio Mesquita
    Front End Web Development Techdegree Student 14,897 Points

    Need help with part 2 of Handling Clicks challenge

    Posted November 7, 2016 11:26pm by Sergio Mesquita
    .a{fill-rule:evenodd;}techdegree
    Sergio Mesquita
    Front End Web Development Techdegree Student 14,897 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    1 Answer

  • Eli Goodwin
    Eli Goodwin
    29,502 Points

    Handling clicks

    Posted August 11, 2016 4:52am by Eli Goodwin
    Eli Goodwin
    29,502 Points
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord