File In Imageview

[Solved] File In Imageview | Scala - Code Explorer | yomemimo.com
Question : file in imageview

Answered by : hurt-hippopotamus-vcz45953917l

File imgFile = new File("/sdcard/Images/test_image.jpg");
if(imgFile.exists()){ Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath()); ImageView myImage = (ImageView) findViewById(R.id.imageviewTest); myImage.setImageBitmap(myBitmap);
}

Source : https://stackoverflow.com/questions/4181774/show-image-view-from-file-path | Last Update : Mon, 12 Oct 20

Answers related to file in imageview

Code Explorer Popular Question For Scala