Error during taking picture
<p>I'm writing an application which have to take a picture and send it to a web service.
There is the code I use to :</p>

<pre><code>i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
outputFileUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory()+"/appicture.jpg"));
Log.i("URI", outputFileUri.toString());
i.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);
startActivityForResult(i, cameraData);
</code></pre>

<p>The URI looks like : </p>

<blockquote>
  <p>file:///sdcard/appicture.jpg</p>
</blockquote>

<p>But if I put "outputFileUri" var in the i.putExtra, my app just quit.
If not, I can take the picture but I can't get her URI then unable to send it to my webservice.</p>

<p>EDIT 1 :
Error log ( on the activity resylt)</p>

<blockquote>
  <p>06-26 09:17:46.108: I/Cam error(699): java.lang.NullPointerException</p>
</blockquote>

<p>EDIT 2 :
If I remove the "outputFileUri", I correctly got the Image. But, then I'm unable to convert the Bitmap into File to be able to send it.</p>

<pre><code>if(resultCode == RESULT_OK){

            Bundle extras = data.getExtras();
            _bmp = (Bitmap) extras.get("data"); 

        }
</code></pre>

<p>EDIT 3 : </p>

<p>The problem was from </p>

<blockquote>
  <p>_bmp = (Bitmap) extras.get("data");</p>
</blockquote>

<p>And the picture is correctly save in the sd card.</p>
