moved placeholder fragment from main activity to new file ForecastFragment.java and moved httpUrlConnection code into an AsyncTask to run in the background instead of the ui thread.