Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: AudioFlinger could not create record track, status: -1

I developed an android-app (Home Noise Alert) and it works fine on many devices. But now I got an error report from a user who uses following device:

ANDROID_VERSION=6.0.1
PHONE_MODEL=HTC One A9

A kind User send me an error report, but I don't understand it. He got this error if he started the app.

This is the error log:

02-05 18:42:41.501 E/AudioRecord( 6200): AudioFlinger could not create record track, status: -1
02-05 18:42:41.505 E/AudioRecord-JNI( 6200): Error creating AudioRecord instance: initialization check failed with status -1.
02-05 18:42:41.505 E/android.media.AudioRecord( 6200): Error code -20 when initializing native AudioRecord object.
02-05 18:42:41.505 E/android.media.AudioRecord( 6200): startRecording() called on an uninitialized AudioRecord.

I believe this bug occurs if a microphone is blocked by another app, do some body have any experience with such errors?

like image 517
thinker Avatar asked Jan 07 '23 16:01

thinker


1 Answers

Go into your Settings/Apps/YourApp/Permissions and enable the microphone

like image 147
Jim Chen Avatar answered Mar 15 '23 23:03

Jim Chen