'how to save realtime recording file to google drive
I'm developing android app that recording voice and upload to google drive.
The simple solution is to save recording file to the local cache directory and then upload that file to google drive using google drive api.
But I want to upload recording file to google drive directly not saving into local cache directory.
Like this
recorder = MediaRecorder()
.apply {
setAudioSource(MediaRecorder.AudioSource.MIC)
setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP)
setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB)
setOutputFile('googleDrivePath')
prepare()
}
recorder?.start()
But I don't know how to get google drive path
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
