🤑 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

  • 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
  • zlatko divjakovski
    zlatko divjakovski
    874 Points

    Cannot resolve symbol 'facts'

    Posted March 17, 2016 8:44pm by zlatko divjakovski
    zlatko divjakovski
    874 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • CD Lim
    CD Lim
    4,782 Points

    How to make a normal next button rather than a random button

    Posted January 29, 2016 10:30am by CD Lim
    CD Lim
    4,782 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    0 Answers

  • Obinna Eruchalu
    PLUS
    Obinna Eruchalu
    Courses Plus Student 534 Points

    Is there any benefit to instantiating these vars/objects every time the button is clicked (as opposed to before)?

    Posted November 17, 2015 1:06am by Obinna Eruchalu
    Obinna Eruchalu
    Courses Plus Student 534 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • Adam Nwaozo
    Adam Nwaozo
    370 Points

    Can someone help here I am getting an error message: Error:(48, 6) error: reached end of file while parsing

    Posted November 3, 2015 6:03pm by Adam Nwaozo
    Adam Nwaozo
    370 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    4 Answers

  • Scott Jaworski
    Scott Jaworski
    3,019 Points

    Telling me the variable "facts" is never used.

    Posted October 29, 2015 4:08pm by Scott Jaworski
    Scott Jaworski
    3,019 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • Adam Nwaozo
    Adam Nwaozo
    370 Points

    Help! facts.length is giving me a red error message once I type it in Android Studio.

    Posted October 22, 2015 5:04pm by Adam Nwaozo
    Adam Nwaozo
    370 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • Jordan Ernst
    Jordan Ernst
    5,121 Points

    fun facts unspecified. program won't run.

    Posted October 22, 2015 8:20am by Jordan Ernst
    Jordan Ernst
    5,121 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    0 Answers

  • Robert Kendall
    Robert Kendall
    1,287 Points

    What is this? Choreographer﹕ Skipped 147 frames! The application may be doing too much work on its main thread

    Posted August 10, 2015 1:54pm by Robert Kendall
    Robert Kendall
    1,287 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • Nikola Jankovic
    Nikola Jankovic
    1,153 Points

    ZIP file with project in Downloads section can not unzip - duplicate names of folders and files

    Posted June 28, 2015 2:29pm by Nikola Jankovic
    Nikola Jankovic
    1,153 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • Sascha Kilders Diaz
    Sascha Kilders Diaz
    1,345 Points

    How to create a nextFunfact and previousFunfact Button?

    Posted June 24, 2015 11:31pm by Sascha Kilders Diaz
    Sascha Kilders Diaz
    1,345 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    0 Answers

  • doccoder
    doccoder
    1,450 Points

    2 values for fact string?

    Posted June 2, 2015 8:13pm by doccoder
    doccoder
    1,450 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • Abdiaziz Abdullahi Abdulle
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Abdiaziz Abdullahi Abdulle
    Full Stack JavaScript Techdegree Student 7,458 Points

    Unfortunately, FunFacts has stopped working

    Posted May 30, 2015 2:55pm by Abdiaziz Abdullahi Abdulle
    .a{fill-rule:evenodd;}techdegree
    Abdiaziz Abdullahi Abdulle
    Full Stack JavaScript Techdegree Student 7,458 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • Adilet Zhusupbekov
    Adilet Zhusupbekov
    1,948 Points

    We have a facts array as a String, and we have randomNumber as int. Why Android did not show mistake in this case?

    Posted May 28, 2015 10:58pm by Adilet Zhusupbekov
    Adilet Zhusupbekov
    1,948 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    2 Answers

  • Eleni Minadaki
    Eleni Minadaki
    3,687 Points

    How can i write large text in a string array?

    Posted April 29, 2015 5:40pm by Eleni Minadaki
    Eleni Minadaki
    3,687 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    3 Answers

  • Emily Cain
    Emily Cain
    5,877 Points

    why not facts.length()?

    Posted April 25, 2015 6:30am by Emily Cain
    Emily Cain
    5,877 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • Carlos R Q
    Carlos R Q
    4,411 Points

    Only display one fact after ants fact... why?

    Posted April 21, 2015 4:54pm by Carlos R Q
    Carlos R Q
    4,411 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    0 Answers

  • Ivan Solodov
    Ivan Solodov
    1,552 Points

    Isn't it more efficient to just make factLebal.setText(facts[randomNumber]); instead of declaring the 'fact' String ?

    Posted April 15, 2015 10:25pm by Ivan Solodov
    Ivan Solodov
    1,552 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    2 Answers

  • khuluod
    khuluod
    3,118 Points

    facts variable

    Posted April 11, 2015 11:27am by khuluod
    khuluod
    3,118 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    2 Answers

  • Vladimir Kreckovic
    Vladimir Kreckovic
    5,252 Points

    Need help for code challenge...

    Posted March 21, 2015 9:30am by Vladimir Kreckovic
    Vladimir Kreckovic
    5,252 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    6 Answers

  • Matthew Puentes
    Matthew Puentes
    999 Points

    Source code

    Posted March 20, 2015 5:16pm by Matthew Puentes
    Matthew Puentes
    999 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    3 Answers

  • David Santos
    David Santos
    1,486 Points

    Could not save application settings: java.io.IOException: java.lang.AssertionError: Unexpected content storage modificat

    Posted January 15, 2015 12:49pm by David Santos
    David Santos
    1,486 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • Robbin Kalaamalho
    Robbin Kalaamalho
    1,571 Points

    App keeps crashing

    Posted January 14, 2015 7:21pm by Robbin Kalaamalho
    Robbin Kalaamalho
    1,571 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    2 Answers

  • Georgi Kamoyan
    PLUS
    Georgi Kamoyan
    Courses Plus Student 3,009 Points

    How do we show in code, that the onClickListener is applied exactly to the "Show Another Fact" button.

    Posted January 5, 2015 9:57am by Georgi Kamoyan
    Georgi Kamoyan
    Courses Plus Student 3,009 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    2 Answers

  • vince hoyt
    vince hoyt
    1,423 Points

    Since adding the array[facts] it is grayed out, and when I tried to add facts.length, facts is red, wont be recognized

    Posted December 13, 2014 4:59am by vince hoyt
    vince hoyt
    1,423 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • Josh Myers
    Josh Myers
    3,203 Points

    Next code challenge question

    Posted November 24, 2014 5:52am by Josh Myers
    Josh Myers
    3,203 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    1 Answer

  • andrewgrindstaff
    andrewgrindstaff
    853 Points

    Fun Facts Code Broken

    Posted October 25, 2014 10:09pm by andrewgrindstaff
    andrewgrindstaff
    853 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    0 Answers

  • Phil Frost
    Phil Frost
    970 Points

    When I try to start the app in the emulator, it just tell me "Unfortunately, Fun Facts has stopped."

    Posted October 11, 2014 7:58am by Phil Frost
    Phil Frost
    970 Points
    • Android
    • Build a Simple Android App (2014)
    • Coding the Fun Facts
    • Properties of Arrays

    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.