Launch camera activity with alternate permissions
<p>I'd like to launch the camera activity and have it dump subsequent pictures into my private app storage. Since the camera doesn't have write permission to that directory, it can't save any of its pictures there.</p>

<p>I could make my private app storage world writable, but that defeats the purpose of having it be private.</p>

<pre><code>@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
    cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT,
            Uri.fromFile(new File(this.getBaseContext().getDir(PHOTOHUNT_DIRNAME, MODE_PRIVATE), "filename")));
    startActivityForResult(cameraIntent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);
}
</code></pre>

<p>Something like the above would be idea. Obviously this doesn't work for the reasons stated above.</p>
