How can I save the image on Galaxy Nexus(Ice Cream Sandwich and possibility other phones)?
<p>We are making an application and in it, we want the ability to save an image. It works great and saves the image automagically on my friends phone which is a samsung galaxy II. But on my Galaxy Nexus it just returns the bitmap data.</p>

<p>The problem is that we are using a function to get the last image path and since Galaxy Nexus won't save the file it just takes the last photo taken with the normal camera application.</p>

<p>This is our code before on result:</p>

<pre><code>private void takePhoto() {
    i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
    startActivityForResult(i, cameraData);
}
</code></pre>

<p>So what I want is the know-how to save the image on the sdcard so we can use it later.</p>
