ListActivity, custom row layout with Bitmap, NOT populating correctly
问题 here is a code snippet of my ListActivity with an adapter that is attempting to a) get a list of the file paths of all files in a particular SD card directory b) factory.decode those files to bitmaps and add them to the custom row in listActivity File directory = new File("/sdcard/DirectoryOfStuff"); String[] filePaths= directory.list; ArrayAdapter<Bitmap> pics = new ArrayAdapter<Bitmap>(); for(int i = 0; i<filePaths.length; i++){ Bitmap b = BitmapFactory.decodeFile(filePaths[i]); pics.add(b)