Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FileOutputStream fos = context.openFileOutput("myimage.png", Context.MODE_PRIVATE);
- bitmap.compress(CompressFormat.PNG, 100, fos);
- fos.close();
- File filepath = context.getFileStreamPath("myimage.png");
- Uri uri = Uri.parse(filepath.toString());
- myImageView.setImageUri(uri);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement