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
  • 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

  • Leanne Breen
    Leanne Breen
    564 Points

    Random Fonts?

    Posted November 22, 2014 11:42pm by Leanne Breen
    Leanne Breen
    564 Points
    • Android
    • Build a Simple Android App (2014)
    • Basic Android Programming
    • Generating a Random Number

    0 Answers

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

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