I need to implement a JNI which render image with 3-party native
function. This function call is time consuming, it cost about 1s to
return. I found during that time, even if I call the JNI within
another Java thread, the whole Dalvik VM is blocked. UI is frozen. I
guess that's because Dalvik doesn't implement Java thread with a
native thread, so any time consuming native function call will block
the whole VM.
I wonder how to solve this problem. My best guess is I should create a
pthread in JNI to call that 3-party native function. But I don't know
how to implement this kind of JNI.
Please help. Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---