Re: [android-porting] muti-threaded native code using JNI

2011-08-25 Thread David Turner
Why are you calling pthread_exit(0) on the main thread, this will terminate your application immediately. You can't block on the main UI thread (which calls your JNI callback). You'll need to find a different synchonization primitive (see AsyncHandlers in the SDK doc) On Wed, Aug 24, 2011 at 5:41

[android-porting] muti-threaded native code using JNI

2011-08-24 Thread arif
Hi All, I ported one muti-threaded native code (binary) to android platform, and is working fine, Now i am trying to run this code by creating apk, created my native code as shared library using NDK and i am calling this shared library by using JNI, below is the sample code, But it is not workin