Help! Stranger situation in Android Audio recorder
Posted: Fri Oct 12, 2018 12:04 pm
HI All,
I had two stack, Stack A is the original Android audio recorder example, which it can run and record audio in android device.
Then I copy the android audio recorder card into Stack B, which embedded the code in this stack, When run this stack and open the audio recorder card, it can not record audio and return the following error :
"error:863,9,1,Java 864,9,1, JNI exception thrown when calling native method 865,9,1, androidaudiorecorder.lcb......"
Also I had a button in this card, use mobilepick, which return error and can not display mobilePick. It seems all native android object will not work on this card. I put this button with mobilepick code into another card, the mobilepick is work correctly. I had try the following in order the fix the problem :
1. set the record audio file into specialfolderpath("external documents")
2. set the acceleratedRendering of this stack to true
3. use manually and system inclusions of android audio recorder library and etc.
Due to my Stack B has a lot of third party tools, So I cannot upload the the stack for reference.
I hope someone may face such situation can give me a hints. Otherwise I need to card out each card in piece by piece to find out the problems
Regards
Terry Ho
I had two stack, Stack A is the original Android audio recorder example, which it can run and record audio in android device.
Then I copy the android audio recorder card into Stack B, which embedded the code in this stack, When run this stack and open the audio recorder card, it can not record audio and return the following error :
"error:863,9,1,Java 864,9,1, JNI exception thrown when calling native method 865,9,1, androidaudiorecorder.lcb......"
Also I had a button in this card, use mobilepick, which return error and can not display mobilePick. It seems all native android object will not work on this card. I put this button with mobilepick code into another card, the mobilepick is work correctly. I had try the following in order the fix the problem :
1. set the record audio file into specialfolderpath("external documents")
2. set the acceleratedRendering of this stack to true
3. use manually and system inclusions of android audio recorder library and etc.
Due to my Stack B has a lot of third party tools, So I cannot upload the the stack for reference.
I hope someone may face such situation can give me a hints. Otherwise I need to card out each card in piece by piece to find out the problems
Regards
Terry Ho