@Override protected void onResume() { super.onResume(); photosGridViewContents = this.filesAtPath(getFilesDir().getAbsolutePath() + "/images"); // new String[]{}; photosGridViewAdapter = new PhotoGridAdapter(this, R.layout.item_imagesgrid, photosGridViewContents); photosGridView = (GridView) findViewById(R.id.photosGridView); photosGridView.setAdapter(photosGridViewAdapter); photosGridView.setOnItemClickListener(this); }