Skip to main content

🛍️ CYBER MONDAY ALL WEEK 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
  • M.Sneha Priyaa
    M.Sneha Priyaa
    1,042 Points

    error in compiler session

    Posted December 17, 2015 1:18pm by M.Sneha Priyaa
    M.Sneha Priyaa
    1,042 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    3 Answers

  • M.Sneha Priyaa
    M.Sneha Priyaa
    1,042 Points

    error in compiler session

    Posted December 17, 2015 1:18pm by M.Sneha Priyaa
    M.Sneha Priyaa
    1,042 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • Jibran Khan
    Jibran Khan
    1,149 Points

    Help with Build a simple android course

    Posted December 11, 2015 2:46am by Jibran Khan
    Jibran Khan
    1,149 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    2 Answers

  • MUZ140831 Blessing Funani
    MUZ140831 Blessing Funani
    654 Points

    how do l change background color to green

    Posted August 4, 2015 3:34pm by MUZ140831 Blessing Funani
    MUZ140831 Blessing Funani
    654 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    2 Answers

  • Nancy Melucci
    PLUS
    Nancy Melucci
    Courses Plus Student 36,809 Points

    Code Challenge Android App Development mealLayout

    Posted July 26, 2015 11:05pm by Nancy Melucci
    Nancy Melucci
    Courses Plus Student 36,809 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • mike LaBianca
    PLUS
    mike LaBianca
    Courses Plus Student 2,456 Points

    Trying to change background color I know I'm close. my code relativeLayout.setBackGroundColor(Color.GREEN);

    Posted July 22, 2015 6:01pm by mike LaBianca
    mike LaBianca
    Courses Plus Student 2,456 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    2 Answers

  • Ryan Behrens
    Ryan Behrens
    1,949 Points

    not working; final RelativeLayout relativeLayout = (RelativeLayout) findViewById(R.id.relativeLayout); //cannot find ?

    Posted July 21, 2015 9:13am by Ryan Behrens
    Ryan Behrens
    1,949 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    0 Answers

  • Antoine Vachon
    Antoine Vachon
    744 Points

    mealLayout.SetBackgroundColor(Color.GREEN); : what is wrong with this line of code? Gives me a compiler error.

    Posted June 24, 2015 7:00pm by Antoine Vachon
    Antoine Vachon
    744 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • MUZ141035 Mabasa Tsuro
    MUZ141035 Mabasa Tsuro
    811 Points

    how do you change the background color to constant Color.GREEN

    Posted June 12, 2015 2:29pm by MUZ141035 Mabasa Tsuro
    MUZ141035 Mabasa Tsuro
    811 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • P ruijters
    P ruijters
    1,217 Points

    random color code generator gives negative values for colors:

    Posted May 3, 2015 2:56pm by P ruijters
    P ruijters
    1,217 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    3 Answers

  • Wise Osagie
    Wise Osagie
    365 Points

    Code someone explain the member variable and public class

    Posted April 29, 2015 2:56am by Wise Osagie
    Wise Osagie
    365 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • MUZ140584 Heredity Mbundire
    MUZ140584 Heredity Mbundire
    4,979 Points

    am stuck here challenge task 1:1 improving our code

    Posted April 14, 2015 9:02am by MUZ140584 Heredity Mbundire
    MUZ140584 Heredity Mbundire
    4,979 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    4 Answers

  • Girri M Palaniyapan
    Girri M Palaniyapan
    7,829 Points

    I am getting an Incompatible Type Error

    Posted March 24, 2015 2:11pm by Girri M Palaniyapan
    Girri M Palaniyapan
    7,829 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    2 Answers

  • Brandon Wash
    PLUS
    Brandon Wash
    Courses Plus Student 1,186 Points

    The code below has a RelativeLayout variable named mealLayout. Change the background color of this layout to green. Use

    Posted January 3, 2015 10:58pm by Brandon Wash
    Brandon Wash
    Courses Plus Student 1,186 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • MUZ140073 Lionell Matambanadzo
    MUZ140073 Lionell Matambanadzo
    12,509 Points

    Improving our code

    Posted December 12, 2014 6:44am by MUZ140073 Lionell Matambanadzo
    MUZ140073 Lionell Matambanadzo
    12,509 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • mersit ukosata
    mersit ukosata
    736 Points

    Having trouble with this quiz

    Posted October 12, 2014 2:22am by mersit ukosata
    mersit ukosata
    736 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • Keith Cox
    PLUS
    Keith Cox
    Courses Plus Student 1,291 Points

    Dynamically changing background color Android Java

    Posted September 23, 2014 4:43pm by Keith Cox
    Keith Cox
    Courses Plus Student 1,291 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    3 Answers

  • Raymond Lam
    Raymond Lam
    1,571 Points

    Building a simple android Ap, stage 5 Challenge, Stuck

    Posted August 31, 2014 7:22am by Raymond Lam
    Raymond Lam
    1,571 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    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