🤑 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
  • Cecilia Williams
    Cecilia Williams
    322 Points

    Emulator VM shuts down (mac-Android Studio)

    Posted December 28, 2015 9:36pm by Cecilia Williams
    Cecilia Williams
    322 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • Arul Hasbi
    Arul Hasbi
    2,404 Points

    Cannot find symbol class Random ? what should i do then ?

    Posted December 15, 2015 11:56am by Arul Hasbi
    Arul Hasbi
    2,404 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

  • HAU MUN TUANG
    HAU MUN TUANG
    1,070 Points

    i don't understand about creating a method and class.

    Posted November 24, 2015 3:52pm by HAU MUN TUANG
    HAU MUN TUANG
    1,070 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

  • HAU MUN TUANG
    HAU MUN TUANG
    1,070 Points

    i don't understand about creating a method and class.

    Posted November 24, 2015 3:52pm by HAU MUN TUANG
    HAU MUN TUANG
    1,070 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • Tommy Binkley
    Tommy Binkley
    18,584 Points

    Questions about generator

    Posted October 27, 2015 5:04am by Tommy Binkley
    Tommy Binkley
    18,584 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • abhilash reddy
    abhilash reddy
    1,237 Points

    I get the same number

    Posted October 5, 2015 11:27am by abhilash reddy
    abhilash reddy
    1,237 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • Tommy Binkley
    Tommy Binkley
    18,584 Points

    Multiple TextView Boxes

    Posted September 20, 2015 7:30pm by Tommy Binkley
    Tommy Binkley
    18,584 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • Pablo Gutierrez
    Pablo Gutierrez
    355 Points

    When I hit the Show Another Fun Fact button, i get a screen with a text in vertical saying "Show AnotherFunFact"

    Posted August 3, 2015 11:25pm by Pablo Gutierrez
    Pablo Gutierrez
    355 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    2 Answers

  • CD Lim
    CD Lim
    4,782 Points

    factLabel is highlighted in pink

    Posted June 22, 2015 6:57am by CD Lim
    CD Lim
    4,782 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • jenyufu
    jenyufu
    3,311 Points

    Is there anyway I can download these videos to watch them offline?

    Posted June 19, 2015 11:27pm by jenyufu
    jenyufu
    3,311 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

  • Eleni Minadaki
    Eleni Minadaki
    3,687 Points

    Different result from lesson when click the Button

    Posted April 27, 2015 8:04am by Eleni Minadaki
    Eleni Minadaki
    3,687 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    2 Answers

  • April Briggs
    April Briggs
    591 Points

    My button went all wonky

    Posted April 16, 2015 8:26pm by April Briggs
    April Briggs
    591 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

  • Michael LaCroix
    Michael LaCroix
    5,828 Points

    Java import issues in Android SDK

    Posted March 12, 2015 5:18pm by Michael LaCroix
    Michael LaCroix
    5,828 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    2 Answers

  • ahmed alghafli
    ahmed alghafli
    3,446 Points

    When I run my app it is work fine but I couldn't get the random number 0 1 2 instate i get java@ some number.???

    Posted February 16, 2015 6:41pm by ahmed alghafli
    ahmed alghafli
    3,446 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

  • Dan Emery
    Dan Emery
    13,841 Points

    Mobile Wallpaper

    Posted February 7, 2015 5:32pm by Dan Emery
    Dan Emery
    13,841 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

  • syalih
    syalih
    16,468 Points

    Need Help

    Posted January 6, 2015 8:55pm by syalih
    syalih
    16,468 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

  • Keve Zoltani
    Keve Zoltani
    1,189 Points

    This is from a few videos about but question about object declarations

    Posted December 31, 2014 8:03pm by Keve Zoltani
    Keve Zoltani
    1,189 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    2 Answers

  • Sherry Evans
    Sherry Evans
    3,377 Points

    Hi I have a few problems I can't seem to straighten out

    Posted December 29, 2014 2:23am by Sherry Evans
    Sherry Evans
    3,377 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

  • Varun Singh
    Varun Singh
    1,905 Points

    Classes and Objects, same or different ?

    Posted November 21, 2014 6:27pm by Varun Singh
    Varun Singh
    1,905 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    4 Answers

  • Joshua Schoen
    Joshua Schoen
    900 Points

    When I try running the Emulator I get a really annoying error in my main page.

    Posted November 7, 2014 9:11pm by Joshua Schoen
    Joshua Schoen
    900 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    1 Answer

  • Richard Cowan
    Richard Cowan
    375 Points

    rather than use randomNumber + ""; I guessed that we could cast ie (String) randomNumber - Why doesnt this work?

    Posted October 23, 2014 2:21pm by Richard Cowan
    Richard Cowan
    375 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    5 Answers

  • Sara Grim
    Sara Grim
    5,285 Points

    After running the program, I get "cannot resolve the symbol class Random & cannot resolve method 'next.Int (int)'.

    Posted September 12, 2014 2:46pm by Sara Grim
    Sara Grim
    5,285 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    3 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.