Reputation: 252
I'm trying to capture video in my Android project for that, I have written the following code---
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
intent.putExtra(MediaStore.EXTRA_OUTPUT, selectedMediaUri);
// start the video capture Intent
startActivityForResult(intent, CAPTURE);
plz see the following screen shot-
Please help me to solve this issue.. Thanks
Upvotes: 2
Views: 699
Reputation: 1586
In which device you are testing is important as if you are testing on Marshmallow device you will need to grant permission at run time.
Upvotes: 1
Reputation: 19
did you add the permission?
<uses-permission android:name="android.permission.CAMERA" />
Upvotes: 1