SoundRecorder - Error 802 illegal character with android10

grafik

If the property is empty the default path (btw, what is an appropriate location?) is set to a folder that does not exist (and is not created by the component).

I think this part should be removed:
grafik

You can set SavedRecordings to the ASD or to one of the
Shared folders:

/storage/emulated/0/Download/
/storage/emulated/0/Documents/
/storage/emulated/0/Music/

1 Like

Hmm. The directory should end up being created automatically. I'll have to look into that.

Hi. I too got the same error while making an audio recorder project. Whether this problem can be fixed by us?

This is my code!!

Yes, as I said, set the path manually (and this path must be an absolute path).

Sorry, I am unable to understand your suggestion. I don't know where to change the path. Can you please elaborate it!!

This is an example to save the recordings in the ASD:
soundRec.aia (2.9 KB)

Note: You must grant storage permission. This is of course a bug.

3 Likes

Thank you for your help!!!
Is there any other way to make a simple program for voice recorder?

What do you mean by that?

The program you have suggested looks large, whether we can make simple program for voice recorder without adding the path manually?

This is the least cumbersome method of doing it...

Is this simple enough?

2 Likes

Yes, thank you so much!!!

These blocks of coding doesn't work !!! :frowning:

What exactly does not work? Recording? Or playing? Which Android version are you using for your tests?

Taifun

Yes, on Android 11 the folder /Music does not accept .3gp files - strange.
It has to be saved as a .mp3 file. The folders /Download and /Documents work also with .3gp extension.

To check this: soundRec2.aia (147.0 KB)

grafik

Blocks

2 Likes

Couldn't able to start recording. The android version of mine is 9!

Thank you for your help!!

which means, it is working for you now?
your answers unfortunately do not help very much...

Taifun

No, it was not working for me. Still I was not able to start recording. But I just want to thank you all for spending time to help me!! :slightly_smiling_face:

It works, I checked it on Android 9 and 11 with Companion & APK.
Did you build the APK and test it on your Android 9 device?
If so, did you grant AUDIO and WRITE permissions?

1 Like