The method that takes care of the capture only returns correctly (using the finnish() method, I think) if the picture can be saved correctly in the file specified by that URI. If there's an exception (such as an IO exception) it will be captured and nothing will be done, so you'll never know. I believe that 'myTestFile' is a file that can only be read/written within your own application and that's why image_capture can't write to it.
On Jun 26, 11:21 pm, hap 497 <[email protected]> wrote: > Hi, I start an IMAGE_CAPTURE Intent like this, and my activity's > onActivityResult() get called: Intent i = new Intent > (android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null); > i.putExtra("return-data", true); startActivityForResult(i, > PICK_ICON_FROM_CAMERA_ID); But, if I start my Intent like this, the Capture > Image Intent did get called, but my activity's onActivityResult() never get > called: Intent i = new Intent > (android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null); > i.putExtra(MediaStore.EXTRA_OUTPUT, Uri.parse("file:/" + "MyTestFile")); > i.putExtra("outputFormat", Bitmap.CompressFormat.PNG.name()); > startActivityForResult(i, PICK_ICON_FROM_CAMERA_ID); Can you please tell me > how to get the 2nd case to work? Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

