Android Question AudioRecorder records to default location

le_toubib

Active Member
Licensed User
Hi falks
i'm using this simple code to record voice

B4X:
Sub recaudio(filename As String)
If sets = True Then
    If File.Exists(File.DirRootExternal,"/speak/" & filename) Then
        File.Delete(File.DirRootExternal,"/speak/" & filename)
    End If       
                    audioRecorder.Initialize("")
                    audioRecorder.Record(File.DirRootExternal, "/speak/" &  filename)

End If
End Sub
After i finish recording and click stop , the recorder screen exits but i doesnt send me back to my app... i cant even find my app in the recent task list. the audiofile is recorded to my documents/myrecordings/audio00xx.aac instead of the desired location.

what am i doing wrong here.
 
Top