What's wrong with this Intent?
<p>What I am trying to do is, when the user chooses this option, my Android app runs an intent. The intent calls for the camera of the Android device, and the camera takes a picture, and then saves the file into the directory named posense.</p>

<pre><code>path = Environment.getExternalStorageDirectory().getName() + File.separatorChar + "posense";
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
File photo = new File(path);
Intent newintent = intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo));
imageuri = Uri.fromFile(photo);
startActivityForResult(newintent, 1);
</code></pre>
