@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mFilename = getArguments().getString(EXTRA_filename); Savelog.d(TAG, debug, "onCreate() entered for " + mFilename); mFileLoader = null; /* Create a bitmap that is tall enough to cover the screen. * This step is very important as the pages will be loaded asynchronously. * If the placeholder is too small, the listview will attempt to load all * the pages even if just 1 is to be displayed at any time. This will cause * oom err */ mPlaceHolderBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.ic_action_help); mFetcherTask = new PdfFetcherAsyncTask(this, mFilename); mFetcherTask.execute(); maxWidth = getScreenMaxDimension(this.getActivity()); setRetainInstance(true); } // end to implementing onCreate()