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
  • Yusuf Mohamed
    Yusuf Mohamed
    2,631 Points

    Why did you make 2 logs if you're just going to remove one of them?

    Posted January 1, 2018 6:54pm by Yusuf Mohamed
    Yusuf Mohamed
    2,631 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    1 Answer

  • shahaf cohen
    shahaf cohen
    1,896 Points

    cannot override onCreateDialog

    Posted June 30, 2017 3:45pm by shahaf cohen
    shahaf cohen
    1,896 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    0 Answers

  • Anru Sharma
    Anru Sharma
    287 Points

    Regarding response

    Posted May 9, 2017 1:43pm by Anru Sharma
    Anru Sharma
    287 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    1 Answer

  • Drew Opland-Evers
    Drew Opland-Evers
    1,568 Points

    The "ActionBarActivity" class is deprecated. Android Studio does not recognize it. I'm using API 19. What should I do?

    Posted April 10, 2017 7:51pm by Drew Opland-Evers
    Drew Opland-Evers
    1,568 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    0 Answers

  • ABHISHEK RAI
    ABHISHEK RAI
    4,865 Points

    Showing Toast on MainActivity

    Posted August 20, 2016 8:37am by ABHISHEK RAI
    ABHISHEK RAI
    4,865 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    2 Answers

  • Shubham Rohal
    PLUS
    Shubham Rohal
    Courses Plus Student 974 Points

    "unreachable statement" Context contect = getActivity();

    Posted July 18, 2016 1:15pm by Shubham Rohal
    Shubham Rohal
    Courses Plus Student 974 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    1 Answer

  • Runkun Miao
    Runkun Miao
    4,186 Points

    In this video, we've already had try-catch block but why we still add a if-else statement?

    Posted June 13, 2016 2:18pm by Runkun Miao
    Runkun Miao
    4,186 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    1 Answer

  • saranyamoellers
    saranyamoellers
    32,649 Points

    Please help "Method doesn't overide medthod from its superclass" I can't compile my weather api?

    Posted January 22, 2016 1:25am by saranyamoellers
    saranyamoellers
    32,649 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    1 Answer

  • Ankit Prasad
    Ankit Prasad
    1,677 Points

    Why are we trying to catch the exception WITHIN the try block? Shouldn't the exception be caught in "catch"????

    Posted August 13, 2015 12:48am by Ankit Prasad
    Ankit Prasad
    1,677 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    1 Answer

  • Mateo Cuervo
    Mateo Cuervo
    2,511 Points

    At the end of the video ben says AlertDialog.Builder is using the factory method pattern????

    Posted July 9, 2015 7:05pm by Mateo Cuervo
    Mateo Cuervo
    2,511 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    1 Answer

  • Michael Partridge
    Michael Partridge
    7,129 Points

    What does the code we deleted in the dialog class do?

    Posted June 16, 2015 3:17pm by Michael Partridge
    Michael Partridge
    7,129 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    0 Answers

  • Rex Wang
    Rex Wang
    2,089 Points

    Why would`respose#isSuccessful()` throw an exception?

    Posted May 21, 2015 8:49am by Rex Wang
    Rex Wang
    2,089 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    2 Answers

  • abdul rehman
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    abdul rehman
    Python Web Development Techdegree Student 1,025 Points

    Doesn't get data from Forecast Api, into my LogCat.

    Posted May 6, 2015 7:55am by abdul rehman
    .a{fill-rule:evenodd;}techdegree
    abdul rehman
    Python Web Development Techdegree Student 1,025 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    0 Answers

  • oscar gonzalez
    oscar gonzalez
    7,072 Points

    Hello I got trouble with this activity, I made all this step as the video But I got an error in getActivity();

    Posted April 16, 2015 12:25am by oscar gonzalez
    oscar gonzalez
    7,072 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    3 Answers

  • Nicolas Hampton
    Nicolas Hampton
    44,725 Points

    Why don't we define the Callback object in a separate variable?

    Posted April 7, 2015 5:59am by Nicolas Hampton
    Nicolas Hampton
    44,725 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    0 Answers

  • Ganta Hemanth
    Ganta Hemanth
    6,460 Points

    Fragments in Android

    Posted March 7, 2015 5:12am by Ganta Hemanth
    Ganta Hemanth
    6,460 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    1 Answer

  • Slava Fleer
    Slava Fleer
    6,086 Points

    what context doing? and you didn't used it in next video... or i missed it?

    Posted February 11, 2015 12:23pm by Slava Fleer
    Slava Fleer
    6,086 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Handling Errors

    1 Answer

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