In my Android application, I store an image file in internal memory using the code below -
FileApplyput Stream Fos = con.openFileOutput (filename, con.MODE_PRIVATE); Fos.write (baf.toByteArray ()); // BF - Bytebrand Force. Close (); Can anyone help me read this image file in an activation from internal display?
Try it out:
Image View Image = (see image) SearchVBIID (RID.IJG); File filePath = getFileStreamPath (fileName); ImageView.setImageDrawable (Drawable.createFromPath (filePath.toString ())); In the above snippet R.id.image the ID of the ImageView is anywhere in your layout filename Is a string in which you have the name of the file used in the openFileOutput call.
Comments
Post a Comment