In my application in android 1.6 I m calling the default camera using
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
and mentioning output directory
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/image.jpg")));
This works fine. However, if I replace it by
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(Environment.getDataDirectory() + "/image.jpg")));
the ok (attach) button doesnt respond. I have added the following in AndroidManifest.xml
<uses-permission android:name="android.permission.CAMERA"/>
How to solve this ?