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

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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
    • Showing results for:
    • Android
    • Android Fragments
    • Introducing Fragments
    • Handling Clicks
    • Close
  • James Han
    James Han
    9,419 Points

    Code challenge: illegal start of expression?

    Posted on Oct 13, 2018 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 on Apr 16, 2018 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 on Jan 7, 2018 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 on Sep 13, 2017 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 on Sep 2, 2017 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 on May 30, 2017 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 on May 25, 2017 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 on Apr 25, 2017 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 on Apr 17, 2017 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 on Apr 6, 2017 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 on Apr 4, 2017 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 on Apr 4, 2017 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 on Apr 4, 2017 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 on Apr 3, 2017 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 on Apr 3, 2017 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 on Mar 22, 2017 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 on Mar 8, 2017 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 on Feb 7, 2017 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 on Dec 19, 2016 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 on Nov 7, 2016 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 on Aug 11, 2016 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.