i am trying to open camera from my android application and capture image, but it doesn't stored in sdcard. If i capture image from in-build camera then it stored the image on sdcard. using following code : (try to open camera).
Intent intent = new Intent(
android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 1);
in manifest permission :
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
is there something missing in my code?
Thanks in advance.