you how to use MediaRecorder to write an application that captures audio from a device microphone, save the audio, and play it back (with MediaPlayer). To record video you'll need to use the device's camera along with MediaRecorder
Note: On devices running Android 9 (API level 28) or higher, apps running in the background cannot access the microphone. Therefore, your app should record audio only when it's in the foreground or when you include an instance of MediaRecorder in a foreground service.
Решил уточнить на случай если вы знаете, так было бы быстрее
Обсуждают сегодня