- Code: Select all
Intent intent2= new Intent("android.media.action.IMAGE_CAPTURE");
uri = Uri.fromFile(new File("TempPicture"));
intent2.putExtra(MediaStore.EXTRA_OUTPUT,uri);
startActivityForResult(intent2,0);
And in the onActivityresult:
- Code: Select all
Bitmap leftImage = (Bitmap)data.getExtras().get("data");
But the image doesn't get the filename I specify (TempPicture), but just a numbered filename (e.g. "IMAG0119"). Does anyone know how to get it to make the file with my own filename? The reason I want to know this is because I don't actually want to save the image on the phone, I just want to read it in an other part of my application and then delete it. But for deleting it I need the filename.

