Toast Solution


#1

We already have mItems in PhotoGaleryFragment.java, so I just added 2 lines in onPostExecute() there

        @Override
        protected void onPostExecute(ArrayList<GaleryItem> items){
            mItems = items;
            setupAdapter();

            String resultSetSize = "Query returned " + mItems.size() + " result(s).";
            Toast.makeText(getActivity(), resultSetSize, Toast.LENGTH_SHORT).show();
        }

and result image is here:
https://drive.google.com/file/d/0BzdoGfp97QQbMWxmNGVVdEw3T1k/view?usp=sharing


#2

I believe the challenge was to return the total number of search hits, which is in the top level xml element returned from the Flickr API. This requires getting that value while parsing the xml and then making that value available to the Fragment so that a toast can be made.