Bitmap和ImageView

imageView = (ImageView)findViewById(R.id.imageView); String path = "sdcard/test.jpg"; File file = new File(path); if (file.exists()) { Bitmap bmp = BitmapFactory.decodeFile(path); imageView.setImageBitmap(bmp); }

你可能感兴趣的:(String,File,Path)