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
  • Eugenio Villarreal
    Eugenio Villarreal
    8,041 Points

    Have Android Studio suggest context variable: context.getString ...

    Posted March 7, 2018 12:07am by Eugenio Villarreal
    Eugenio Villarreal
    8,041 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    0 Answers

  • Yusuf Mohamed
    Yusuf Mohamed
    2,631 Points

    I keep getting the error message on the emulator even though I've changed the longitude.

    Posted January 5, 2018 2:08pm by Yusuf Mohamed
    Yusuf Mohamed
    2,631 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    1 Answer

  • Nyle Cohen
    Nyle Cohen
    448 Points

    I keep getting error messages and I am following along

    Posted June 2, 2017 9:50pm by Nyle Cohen
    Nyle Cohen
    448 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    3 Answers

  • Abhishek Jakhar
    Abhishek Jakhar
    28,612 Points

    My dialog is working only when I call alertUserAboutError() inside the onFailure method.

    Posted March 22, 2017 3:25am by Abhishek Jakhar
    Abhishek Jakhar
    28,612 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    0 Answers

  • Joyce Chidiadi
    Joyce Chidiadi
    1,867 Points

    I keep getting the Error Alerts even at the end of this course

    Posted January 28, 2017 7:51pm by Joyce Chidiadi
    Joyce Chidiadi
    1,867 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    0 Answers

  • Talwinder Singh
    Talwinder Singh
    1,508 Points

    gradle build finishes with one error

    Posted December 29, 2016 6:11pm by Talwinder Singh
    Talwinder Singh
    1,508 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    1 Answer

  • John Chun
    John Chun
    3,230 Points

    How come we don't explicitly call the onCreateDialogue() that was overridden?

    Posted October 7, 2016 2:03am by John Chun
    John Chun
    3,230 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    0 Answers

  • Carl Sergile
    Carl Sergile
    16,570 Points

    Not getting the Alert Dialog to Show. No errors in code.

    Posted October 6, 2016 5:51pm by Carl Sergile
    Carl Sergile
    16,570 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    2 Answers

  • Matthew Francis
    Matthew Francis
    6,967 Points

    Why do we need an activity lifecycle for Dialogs?

    Posted September 8, 2016 9:41pm by Matthew Francis
    Matthew Francis
    6,967 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    1 Answer

  • Derek Derek
    Derek Derek
    8,744 Points

    what is the purpose if "Extract string resource"?

    Posted February 18, 2016 2:06pm by Derek Derek
    Derek Derek
    8,744 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    1 Answer

  • CD Lim
    CD Lim
    4,782 Points

    AlertDialogue / Error Message keeps on appearing

    Posted January 5, 2016 8:46am by CD Lim
    CD Lim
    4,782 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    0 Answers

  • Kevin Faust
    Kevin Faust
    15,353 Points

    why do we put "context" in front of getString?

    Posted October 10, 2015 4:40pm by Kevin Faust
    Kevin Faust
    15,353 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    1 Answer

  • yuehwencheng
    yuehwencheng
    29,154 Points

    Does it make any difference whether to use context.GetString() or not when setting title value of AlertDialog.Builder?

    Posted August 22, 2015 1:07pm by yuehwencheng
    yuehwencheng
    29,154 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    1 Answer

  • Akshay Rathee
    Akshay Rathee
    1,205 Points

    can't resolve symbol "AlertDialogFragment"

    Posted August 6, 2015 6:01pm by Akshay Rathee
    Akshay Rathee
    1,205 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    5 Answers

  • Mateo Cuervo
    Mateo Cuervo
    2,511 Points

    at 3:34 with method dialog.show() I get create method "show" error message?

    Posted July 9, 2015 7:25pm by Mateo Cuervo
    Mateo Cuervo
    2,511 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    0 Answers

  • jenyufu
    jenyufu
    3,311 Points

    In the Alert Dialog my [OK] button is set in the middle of the dialog. But in the lesson its in the bottom right?

    Posted July 7, 2015 4:07am by jenyufu
    jenyufu
    3,311 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    1 Answer

  • Gerardo Guzman
    Gerardo Guzman
    4,480 Points

    Error: eglSurfaceAttrib not implemented? Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6b7ba00, error=EGL_SUCCESS

    Posted May 29, 2015 7:10pm by Gerardo Guzman
    Gerardo Guzman
    4,480 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    1 Answer

  • MUZ140698 Kudakwashe Gwaindepi
    MUZ140698 Kudakwashe Gwaindepi
    4,150 Points

    app not crushing when I set wrong latitude

    Posted May 28, 2015 3:00pm by MUZ140698 Kudakwashe Gwaindepi
    MUZ140698 Kudakwashe Gwaindepi
    4,150 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    2 Answers

  • Eleni Minadaki
    Eleni Minadaki
    3,687 Points

    Cannot resolve method'setTitle(java.lang.String)'

    Posted May 16, 2015 4:26am by Eleni Minadaki
    Eleni Minadaki
    3,687 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    2 Answers

  • Mahmoud Tokura
    Mahmoud Tokura
    789 Points

    My error alert doesn't pop up, app just crashes.

    Posted April 25, 2015 12:37pm by Mahmoud Tokura
    Mahmoud Tokura
    789 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    4 Answers

  • Slava Fleer
    Slava Fleer
    6,086 Points

    Created custom title and message in AlertDialogFragment class, but don't understand how to do default text ?

    Posted March 16, 2015 11:42am by Slava Fleer
    Slava Fleer
    6,086 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    0 Answers

  • Steve Hunter
    Steve Hunter
    57,712 Points

    Unable to resolve host "api.forecast.io": No address associated with hostname

    Posted February 6, 2015 4:20pm by Steve Hunter
    Steve Hunter
    57,712 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    4 Answers

  • Michael Whitley
    Michael Whitley
    5,341 Points

    The download links lead to the Swift version of the app

    Posted January 27, 2015 10:05pm by Michael Whitley
    Michael Whitley
    5,341 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    1 Answer

  • Joannie Huang
    Joannie Huang
    6,195 Points

    About look up the Android API

    Posted January 18, 2015 3:16am by Joannie Huang
    Joannie Huang
    6,195 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    1 Answer

  • adi badhwar
    PLUS
    adi badhwar
    Courses Plus Student 884 Points

    Error : onCreate(bundle)

    Posted January 12, 2015 9:37am by adi badhwar
    adi badhwar
    Courses Plus Student 884 Points
    • Android
    • Build a Weather App (2015)
    • Concurrency and Error Handling
    • Configuring the Alert Dialog

    2 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