As asked, is it possible? Here's part of my code. I don't know how to change it, please help me!
Bundle b = New_Entry.this.getIntent().getExtras();
String s1 = b.getString("image");
try {
new File("/sdcard/myImages").mkdirs();
InputStream in = getResources().openRawResource(imageSID[position]);
File f2 = new File("/sdcard/myimages"+filename[position]);
OutputStream out = new FileOutputStream(f2);
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0){
out.write(buf, 0, len); }
in.close();
out.close();
} catch(Exception x) {
Toast.makeText(getBaseContext(), "Error!", Toast.LENGTH_SHORT).show();
}
And yes, the error toast came up!