Android Record a video

I am trying to record a video on my android project. I have found some exemples on the internet but nothing is working. Normaly, i have to use the MediaRecorder Can you give me a simple exemple, i …