private void populateChildGallery(){
  ArrayList<DataHolder> files=readGallery((GalleryActivity)getActivity());
  System.gc();
  mGalleryAdapter=new GalleryAdapter(getActivity(),R.layout.gridview_child_gallery_item,mGalleryType,files,mCacheManager,myContext.getFilePathsList(),myContext.getMaxPhoto());
  mGalleryAdapter.setPhotoClickListener((GalleryActivity)getActivity());
  mGalleryView.setAdapter(mGalleryAdapter);
}

private void populateChildGallery ( ) { ArrayList < DataHolder > files = readGallery ( ( GalleryActivity ) getActivity ( ) ) ; System . gc ( ) ; mGalleryAdapter = new GalleryAdapter ( getActivity ( ) , R . layout . gridview_child_gallery_item , mGalleryType , files , mCacheManager , myContext . getFilePathsList ( ) , myContext . getMaxPhoto ( ) ) ; mGalleryAdapter . setPhotoClickListener ( ( GalleryActivity ) getActivity ( ) ) ; mGalleryView . setAdapter ( mGalleryAdapter ) ; }
function for reading the gallery files and folders and setting custom adapter for gallery grid view
