✨ 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
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button
    • Close
  • Alberto Olmeda
    Alberto Olmeda
    4,063 Points

    the challenge is: Initialize the showFactButton variable using the findViewById() method like the TextView above it.

    Posted on Dec 20, 2022 by Alberto Olmeda
    Alberto Olmeda
    4,063 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    0 Answers

  • Farai Ted Mandoreba
    Farai Ted Mandoreba
    21,518 Points

    Initialize the showFactButton variable using the findViewById() method like the TextView above it. The ID for the button

    Posted on Mar 4, 2019 by Farai Ted Mandoreba
    Farai Ted Mandoreba
    21,518 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    1 Answer

  • Farai Ted Mandoreba
    Farai Ted Mandoreba
    21,518 Points

    Initialize the showFactButton variable using the findViewById() method like the TextView above it. The ID for the button

    Posted on Mar 4, 2019 by Farai Ted Mandoreba
    Farai Ted Mandoreba
    21,518 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    1 Answer

  • Oliver Hoad
    Oliver Hoad
    23,622 Points

    What am I doing wrong?

    Posted on Oct 13, 2018 by Oliver Hoad
    Oliver Hoad
    23,622 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    0 Answers

  • Abdulraheem Bakare
    Abdulraheem Bakare
    809 Points

    how do i make this work

    Posted on Jul 25, 2018 by Abdulraheem Bakare
    Abdulraheem Bakare
    809 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    1 Answer

  • Jorge Ponce
    Jorge Ponce
    2,252 Points

    I stop my course and i forget other things who can help me here.

    Posted on May 14, 2018 by Jorge Ponce
    Jorge Ponce
    2,252 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    1 Answer

  • Manojkumar Sawant
    PLUS
    Manojkumar Sawant
    Courses Plus Student 194 Points

    Initialize the showFactButton variable using the findViewById() method like the TextView above it. The ID for the button

    Posted on Jan 11, 2018 by Manojkumar Sawant
    Manojkumar Sawant
    Courses Plus Student 194 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    1 Answer

  • Vygandas Razhas
    PLUS
    Vygandas Razhas
    Courses Plus Student 2,422 Points

    I've compared this syntax with atleast 4 different answered questions and I can't seem to find what's wrong with this.

    Posted on Dec 13, 2017 by Vygandas Razhas
    Vygandas Razhas
    Courses Plus Student 2,422 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    1 Answer

  • ajaxrobotowl
    ajaxrobotowl
    219 Points

    formatting error with showFactButton

    Posted on Nov 24, 2017 by ajaxrobotowl
    ajaxrobotowl
    219 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    1 Answer

  • john peter
    PLUS
    john peter
    Courses Plus Student 1,215 Points

    how to solve this im a bit confused by the question

    Posted on Nov 12, 2017 by john peter
    john peter
    Courses Plus Student 1,215 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    2 Answers

  • Savanna Sullivan
    Savanna Sullivan
    924 Points

    Initialize the showFactButton variable using the findViewById() method like the TextView above it. The ID for the buttoN

    Posted on Nov 6, 2017 by Savanna Sullivan
    Savanna Sullivan
    924 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    0 Answers

  • RAVIRAJ DESAI
    RAVIRAJ DESAI
    145 Points

    Getting Errors..Please Help.

    Posted on Sep 12, 2017 by RAVIRAJ DESAI
    RAVIRAJ DESAI
    145 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    1 Answer

  • Jorge Pérez
    Jorge Pérez
    974 Points

    I don't know how to continue

    Posted on Sep 11, 2017 by Jorge Pérez
    Jorge Pérez
    974 Points
    • Android
    • Build a Simple Android App with Java
    • Basic Android Programming
    • Initializing a Button

    1 Answer

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.