Toast Solution


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

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

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

and result image is here:


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.