Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

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

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
  • Simon Ekizean
    Simon Ekizean
    963 Points

    Cannot resolve method 'findViewByID(int)'

    Posted July 30, 2017 3:32pm by Simon Ekizean
    Simon Ekizean
    963 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    2 Answers

  • mariko muranishi
    mariko muranishi
    860 Points

    what is the ID?

    Posted May 10, 2017 8:01pm by mariko muranishi
    mariko muranishi
    860 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    1 Answer

  • Gabriel Eduard Niculita
    PLUS
    Gabriel Eduard Niculita
    Courses Plus Student 533 Points

    private Button mShowFactButton;

    Posted April 25, 2017 10:21am by Gabriel Eduard Niculita
    Gabriel Eduard Niculita
    Courses Plus Student 533 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    1 Answer

  • Danika Guiley
    Danika Guiley
    1,247 Points

    Can't find FactTextView

    Posted November 22, 2016 7:26pm by Danika Guiley
    Danika Guiley
    1,247 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    3 Answers

  • Markus Henze
    Markus Henze
    1,798 Points

    factTextView stays red

    Posted October 25, 2016 12:56am by Markus Henze
    Markus Henze
    1,798 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    4 Answers

  • Luke Kim
    Luke Kim
    482 Points

    The R class is not working

    Posted October 13, 2016 3:53am by Luke Kim
    Luke Kim
    482 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    2 Answers

  • Matthew Francis
    Matthew Francis
    6,967 Points

    Type Casting clarificaiton

    Posted September 2, 2016 12:58am by Matthew Francis
    Matthew Francis
    6,967 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    2 Answers

  • Sha Sud
    Sha Sud
    4,175 Points

    can't find the class?

    Posted June 28, 2016 7:16pm by Sha Sud
    Sha Sud
    4,175 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    0 Answers

  • prateek tiwari
    PLUS
    prateek tiwari
    Courses Plus Student 656 Points

    Coding issue in java

    Posted June 12, 2016 5:26pm by prateek tiwari
    prateek tiwari
    Courses Plus Student 656 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    0 Answers

  • ginny sinclair
    PLUS
    ginny sinclair
    Courses Plus Student 907 Points

    cantfinetheRclass

    Posted April 10, 2016 6:24am by ginny sinclair
    ginny sinclair
    Courses Plus Student 907 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    3 Answers

  • Umair Khalil
    Umair Khalil
    5,285 Points

    findViewById() isn't working!

    Posted April 6, 2016 7:27pm by Umair Khalil
    Umair Khalil
    5,285 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    3 Answers

  • sagar sen
    sagar sen
    130 Points

    different codes on my pc and the video

    Posted March 24, 2016 7:13pm by sagar sen
    sagar sen
    130 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    0 Answers

  • Masrur Chowdhury
    Masrur Chowdhury
    1,484 Points

    in the codeline mFactTextView = findViewById (R.id.factTextView) factTextView is in red for me. How to fix?

    Posted February 2, 2016 6:37pm by Masrur Chowdhury
    Masrur Chowdhury
    1,484 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    1 Answer

  • Michael DeBruyn
    Michael DeBruyn
    359 Points

    The red text in textView isn't going away after i press alt+enter, Why?

    Posted January 15, 2016 9:58am by Michael DeBruyn
    Michael DeBruyn
    359 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    1 Answer

  • Derek Derek
    Derek Derek
    8,744 Points

    factTextView

    Posted January 9, 2016 5:53am by Derek Derek
    Derek Derek
    8,744 Points
    • Android
    • Build a Simple Android App
    • Basic Android Programming
    • Accessing Views in Code: Assigning Variables

    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