🤑 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
  • 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
    31,831 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
    31,831 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,638 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,638 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.

    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.