Well, since i don't believe there's a solution for the problem, at
least i got something better. Still using approach #1, but now i
delete the file from the Gallery.
Uri uri = data.getData();
String ipath = getRealPathFromURI(uri);
File f = new File(ipath);
InputStream is = new FileInputStream(f);
FileOutputStream os = new
FileOutputStream(targetPhotoName);
byte[] buf = new byte[4096];
int r;
while ((r = is.read(buf)) > 0)
os.write(buf,0,r);
is.close();
os.close();
// delete the original photo
f.delete();
getContentResolver().delete(uri,null,null);
// return to TotalCross
Launcher4A.pictureTaken(0,null);
HTH if noone helps me. ;-)
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en