Android: Display Image from SD CARD
问题 This is driving me insane! Here\'s my code (I know this file exists): File imageFile = new File(\"/sdcard/gallery_photo_4.jpg\"); ImageView jpgView = (ImageView)findViewById(R.id.imageView); BitmapDrawable d = new BitmapDrawable(getResources(), imageFile.getAbsolutePath()); jpgView.setImageDrawable(d); The error occurs on that last line (line 28, referenced below). Error output: W/dalvikvm( 865): threadid=1: thread exiting with uncaught exception (group=0x4001d800) E/AndroidRuntime( 865):