Android AsyncTask with native code

with the premise that I do not have C language EXPERIENCE, I would like to solve a problem that prevents me from continuing to publish my application.

I have a built-in function that uses ffmeg to convert files that I call from Android using AsyncTask.

I need to stop the native function and try in several ways:

1) I created the "deleteRutine" function in C, which resets all variables. (does not work)

2) I added a boolean variable to the conversion function, and I set it to false using the method from Android (doesn't work)

What else can I try? Any tips?

+3
source share
2 answers

rui.araujo, , .

, Android , , . JNI-, - .

:

while(FLAG==true)
{
     //Do Your task
}
return;

, . . - , ...

+2

All Articles