Android Question AudioRecorder records to default location

Discussion in 'Android Questions' started by le_toubib, Mar 23, 2015.

  1. le_toubib

    le_toubib Active Member Licensed User

    Hi falks
    i'm using this simple code to record voice

    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.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.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Try to replace AudioRecorder with AudioRecordApp from the Audio library.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice