Page 1 of 1

[SOLVED] Android Audio Recorder and Android 10 ?

Posted: Tue Jun 09, 2020 7:11 pm
by samuel.vannesteBUSGvXT
Hello,
Please do someone know if Android Audio Recorder should work with Android 10 ? I just get some error I do not understand :
androidRecorderStartRecording
909,0,0
909,0,0
573,22,1
androidRecorderStopRecording
573,3,1
Record

Code: Select all

on mouseUP   
   put androidHasPermission("android.permission.RECORD_AUDIO") into n1
   if not n1 then
      androidRequestPermission "android.permission.RECORD_AUDIO"
   end if
   put androidHasPermission("android.permission.WRITE_EXTERNAL_STORAGE") into n2
   if not n2 then
      androidRequestPermission "android.permission.WRITE_EXTERNAL_STORAGE" 
   end if
   put androidHasPermission("android.permission.CAPTURE_AUDIO_OUTPUT ") into n3
   if not n3 then
      androidRequestPermission "android.permission.CAPTURE_AUDIO_OUTPUT "
   end if
   
   local tFilePath
   put specialFolderPath("documents") & slash & "recording.aac" into tFilePath   
   try
      androidRecorderStartRecording tFilePath
   catch tError
      answer tError
   end try
end mouseUP
Stop Record

Code: Select all

on mouseUP
   try
      androidRecorderStopRecording
   catch tError
      answer tError
   end try
end mouseUP
LC 9.6 Indy, Android device Huawei Mate 20 Lite, Android 10
Many thanks for any tip.

Re: Android Audio Recorder and Android 10 ?

Posted: Wed Jun 10, 2020 6:47 am
by LiveCode_Panos
Hello Samuel,

Could it be the case you have not added "Android Audio Recorder" in the Inclusions pane of the standalone settings?

Kind regards,
Panos
--

Re: Android Audio Recorder and Android 10 ?

Posted: Wed Jun 10, 2020 8:27 am
by samuel.vannesteBUSGvXT
Hello Panos,
Thanks a lot, it was ! I had clicked on the wrong inclusion and did not thought to recheck... Sorry for the time I made you spend on that issue but THANKS a lot :D

Re: [SOLVED] Android Audio Recorder and Android 10 ?

Posted: Wed Jun 10, 2020 8:47 am
by LiveCode_Panos
No worries - you're welcome :)