hears Active Member Licensed User Longtime User Apr 2, 2020 #1 my libary alway get this erro : java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord. i have try put the under code to mainfest,but the libary cannot access MIC. <action android:name="android.permission.RECORD_AUDIO"/> I have searched this code for get permition,how to translate to ba.activity ? Code: Copy private static final int GET_RECODE_AUDIO = 1; private static String[] PERMISSION_AUDIO = { Manifest.permission.RECORD_AUDIO }; Last edited: Apr 2, 2020
my libary alway get this erro : java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord. i have try put the under code to mainfest,but the libary cannot access MIC. <action android:name="android.permission.RECORD_AUDIO"/> I have searched this code for get permition,how to translate to ba.activity ? Code: Copy private static final int GET_RECODE_AUDIO = 1; private static String[] PERMISSION_AUDIO = { Manifest.permission.RECORD_AUDIO };
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2020 #2 Why aren't you using AudioStreamer library? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2020 #3 (Very) Big mistake to request the permission from inside the library. Upvote 0
hears Active Member Licensed User Longtime User Apr 2, 2020 #4 thank you ,after change my sdk version, it si work now . just put to "mainfest" Upvote 0
Jmu5667 Well-Known Member Licensed User Longtime User Apr 2, 2020 #5 I must agree with @Erel, you should use audio streamer. Upvote 0