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
  • Dwayne McAlsikey
    Dwayne McAlsikey
    1,995 Points

    The random numbers won't appear when I click the button

    Posted January 21, 2016 2:49pm by Dwayne McAlsikey
    Dwayne McAlsikey
    1,995 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    0 Answers

  • Daniel Brecher
    PLUS
    Daniel Brecher
    Courses Plus Student 298 Points

    Dont even know how to spell it...

    Posted December 23, 2015 5:04pm by Daniel Brecher
    Daniel Brecher
    Courses Plus Student 298 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    1 Answer

  • Eleni Minadaki
    Eleni Minadaki
    3,687 Points

    How can i write larger text in mt app?

    Posted November 22, 2015 8:05am by Eleni Minadaki
    Eleni Minadaki
    3,687 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    1 Answer

  • Alexander Huamani
    Alexander Huamani
    2,091 Points

    My fact is greyed out, and says the value is never used

    Posted October 6, 2015 10:46pm by Alexander Huamani
    Alexander Huamani
    2,091 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    3 Answers

  • Nikhil Singh
    Nikhil Singh
    595 Points

    AN ERROR OCCURED

    Posted September 26, 2015 2:50pm by Nikhil Singh
    Nikhil Singh
    595 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    1 Answer

  • Gianpiero Gaeta
    Gianpiero Gaeta
    1,697 Points

    can we use the switch istead of if?

    Posted September 18, 2015 9:18am by Gianpiero Gaeta
    Gianpiero Gaeta
    1,697 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    1 Answer

  • Elie Haykal
    Elie Haykal
    8,163 Points

    Random Number Duplicates

    Posted August 24, 2015 1:12pm by Elie Haykal
    Elie Haykal
    8,163 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    4 Answers

  • Tati Belikova
    Tati Belikova
    14,117 Points

    Problem with previewing the Fun facts app

    Posted June 27, 2015 4:03pm by Tati Belikova
    Tati Belikova
    14,117 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    0 Answers

  • CD Lim
    CD Lim
    4,782 Points

    cannot convert randomNumber into text fact

    Posted June 22, 2015 10:58am by CD Lim
    CD Lim
    4,782 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    0 Answers

  • MUZ140756 Phiona Bhatasara
    MUZ140756 Phiona Bhatasara
    4,153 Points

    Error:(7, 17) Resource id cannot be an empty string (at 'id' with value '@+id/'). Error:Execution failed for task ':app

    Posted May 8, 2015 10:21pm by MUZ140756 Phiona Bhatasara
    MUZ140756 Phiona Bhatasara
    4,153 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    2 Answers

  • MUZ140698 Kudakwashe Gwaindepi
    MUZ140698 Kudakwashe Gwaindepi
    4,150 Points

    my emulator device cannot work properly

    Posted April 10, 2015 5:05pm by MUZ140698 Kudakwashe Gwaindepi
    MUZ140698 Kudakwashe Gwaindepi
    4,150 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    0 Answers

  • Adam Łakomy
    Adam Łakomy
    10,718 Points

    I think switch would be much more appropriate

    Posted February 10, 2015 9:19am by Adam Łakomy
    Adam Łakomy
    10,718 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    0 Answers

  • Nicholas Demetriou
    Nicholas Demetriou
    639 Points

    Comments

    Posted January 13, 2015 1:26pm by Nicholas Demetriou
    Nicholas Demetriou
    639 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    0 Answers

  • Peter Ramsay
    Peter Ramsay
    1,253 Points

    Having trouble getting emulator to work on Android Studio

    Posted November 6, 2014 11:58pm by Peter Ramsay
    Peter Ramsay
    1,253 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    2 Answers

  • Kimberly Hoshal
    Kimberly Hoshal
    645 Points

    Once I added the random fact text, the setOnclickListener and other things broke below

    Posted October 14, 2014 7:22pm by Kimberly Hoshal
    Kimberly Hoshal
    645 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    4 Answers

  • Eric Wolkoff
    Eric Wolkoff
    4,475 Points

    emulator opens but when trying to open Funfact app an error message appears saying the funfact app cannot open.

    Posted September 4, 2014 7:20pm by Eric Wolkoff
    Eric Wolkoff
    4,475 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Using Conditionals (if Statements)

    7 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