[SOLVED] Android Audio Recorder and Android 10 ?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
samuel.vannesteBUSGvXT
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 43
Joined: Wed Sep 19, 2012 6:32 pm
Location: Versailles, France

[SOLVED] Android Audio Recorder and Android 10 ?

Post by samuel.vannesteBUSGvXT » Tue Jun 09, 2020 7:11 pm

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.
Last edited by samuel.vannesteBUSGvXT on Wed Jun 10, 2020 8:27 am, edited 1 time in total.

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 700
Joined: Fri Feb 06, 2015 4:03 pm

Re: Android Audio Recorder and Android 10 ?

Post by LiveCode_Panos » Wed Jun 10, 2020 6:47 am

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
--

samuel.vannesteBUSGvXT
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 43
Joined: Wed Sep 19, 2012 6:32 pm
Location: Versailles, France

Re: Android Audio Recorder and Android 10 ?

Post by samuel.vannesteBUSGvXT » Wed Jun 10, 2020 8:27 am

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

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 700
Joined: Fri Feb 06, 2015 4:03 pm

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

Post by LiveCode_Panos » Wed Jun 10, 2020 8:47 am

No worries - you're welcome :)

Post Reply

Return to “Android Deployment”