//It is a picture in the current project
Bitmap bitmap = (getResources(),
);
FileOutputStream fos = null;
try
{
File file = new File("/mnt/sdcard/testfile");
if (!())
{
();
}
fos = new FileOutputStream("/mnt/sdcard/testfile/");
//
(, 100, fos);
} catch (FileNotFoundException e)
{
();
}