Programming/Android

[Android] Uri로 Bitmap 추출

Fimtrus 2014. 1. 9. 11:15
Bitmap bitmap = null;
try {
	bitmap = Images.Media.getBitmap(getActivity().getContentResolver(), uri);
} catch (FileNotFoundException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
} catch (IOException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
}