Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Weather App (2015) Concurrency and Error Handling Configuring the Alert Dialog

Slava Fleer
Slava Fleer
6,086 Points

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

I changed the class so I could use it for any title and error message. But I want to do it "idiot proof", so I tried to add some default title and message, but without success .

This is my git link (finally I'm working with it =) )

https://github.com/slavafleer/myWeatherApp/tree/How_to_add_default_title_and_message_for_Alert_Dialog_Fragment

Thanks for trouble.