String path = Environment.getExternalStorageDirectory().toString();
OutputStream fOut = null;
File file = new File(path, "FitnessGirl"+Contador+".jpg");
fOut = new FileOutputStream(file);
getImageBitmap(myurl).compress(Bitmap.CompressFormat.JPEG, 85, fOut);
fOut.flush();
fOut.close();
MediaStore.Images.Media.insertImage
(getContentResolver(),file.getAbsolutePath(),
file.getName(),file.getName());
'android' 카테고리의 다른 글
Bitmap 객체 jpg로 저장하기 (0) | 2011.06.21 |
---|---|
email intent 다중파일 전송 (0) | 2011.06.21 |
email intent (0) | 2011.06.21 |
android email intent (0) | 2011.06.21 |
android facebook 연동하기(1) (0) | 2011.06.21 |