Buggy code:
public class ItunesItemListFragment extends ListFragment { private static final String STATE_ACTIVATED_POSITION = "activated_position" ; public static final String ARG_URL_ID = "url_link_id" ; private ItunesItemListFragment . Callbacks mCallbacks = ItunesItemListFragment . sDummyCallbacks ; private int mActivatedPosition = ListView . INVALID_POSITION ; public interface Callbacks { public void onItunesItemSelected ( Entry item ) { } } private static ItunesItemListFragment . Callbacks sDummyCallbacks = new ItunesItemListFragment . Callbacks ( ) { @ Override public void onItunesItemSelected ( Entry item ) { } } ; private static final String TAG = ItunesItemListFragment . class . getSimpleName ( ) ; public List < Entry > getItunesItemList ( ) { } private List < Entry > itunesItemList = new ArrayList < Entry > ( ) ; private ProgressDialog pDialog ; private ItunesAdapter adapter ; public ItunesItemListFragment ( ) { } public static ItunesItemListFragment newInstance ( String url ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; adapter = new ItunesAdapter ( getActivity ( ) , itunesItemList ) ; setListAdapter ( adapter ) ; pDialog = new ProgressDialog ( this . getActivity ( ) ) ; pDialog . setMessage ( "Loading..." ) ; Handler handler = new Handler ( ) ; handler . postDelayed ( new Runnable ( ) { public void run ( ) { if ( ( pDialog ) != null ) pDialog . show ( ) ; } <START_BUG> } , 1000 ) ; <END_BUG> if ( ( getArguments ( ) ) != null ) { JsonObjectRequest jsonObjReq = new JsonObjectRequest ( getArguments ( ) . getString ( ItunesItemListFragment . ARG_URL_ID ) , null , new Response . Listener < JSONObject > ( ) { @ Override public void onResponse ( JSONObject response ) { Log . d ( ItunesItemListFragment . TAG , response . toString ( ) ) ; Gson gson = new Gson ( ) ; ItunesRSSResponse rssResponse = gson . fromJson ( response . toString ( ) , . class ) ; Log . d ( ItunesItemListFragment . TAG , rssResponse . getFeed ( ) . getAuthor ( ) . getName ( ) . getLabel ( ) ) ; itunesItemList . clear ( ) ; itunesItemList . addAll ( rssResponse . getFeed ( ) . getEntry ( ) ) ; Log . d ( ItunesItemListFragment . TAG , ( "" + ( adapter . getCount ( ) ) ) ) ; hidePDialog ( ) ; adapter . notifyDataSetChanged ( ) ; Log . d ( ItunesItemListFragment . TAG , ( "" + ( adapter . getCount ( ) ) ) ) ; } } , new Response . ErrorListener ( ) { @ Override public void onErrorResponse ( VolleyError error ) { VolleyLog . d ( ItunesItemListFragment . TAG , ( "Error:<seq2seq4repair_space>" + ( error . getMessage ( ) ) ) ) ; hidePDialog ( ) ; } } ) ; ItunesAppController . getInstance ( ) . addToRequestQueue ( jsonObjReq ) ; } } @ Override public void onDestroy ( ) { } private void hidePDialog ( ) { } @ Override public void onViewCreated ( View view , Bundle savedInstanceState ) { } @ Override public void onAttach ( Activity activity ) { } @ Override public void onDetach ( ) { } @ Override public void onListItemClick ( ListView listView , View view , int position , long id ) { } @ Override public void onSaveInstanceState ( Bundle outState ) { } public void setActivateOnItemClick ( boolean activateOnItemClick ) { } private void setActivatedPosition ( int position ) { } }

Fix:
} , 4000 ) ;