I would like to know when an activity I have started ends. How can I do that when the code related to the activity is:
intent_record_video = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
intent_record_video.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 5);
startActivityForResult(intent_record_video, VIDEO_CAPTURE);
The code above is all the code related to the activity of recording a video. I want to know when it has ended/ be notified when it ends. How do I do that?