[android-developers] re: JNI - FindClass() returns null

2011-10-12 Thread Bob
Sorry to revisit such an old post, but the answer by fadden is precisely what I needed to know, and one that took some effort to dig up. The issue about non-system classes not being loaded will come up if you are implementing callbacks from C into the JVM; there seem to be plenty of other

[android-developers] Re: JNI - FindClass() returns null

2009-01-13 Thread Andrew Stadler
As has been noted before, native code JNI development is not currently supported on the SDK, and probably is better off discussed in the android-platform or android-discuss boards. See http://source.android.com/discuss for more information. --~--~-~--~~~---~--~~

[android-developers] Re: JNI - FindClass() returns null

2009-01-12 Thread Dave Sparks
Of the top of my head, I think you need to createThreadEtc with the flag to indicate that your thread will call into Java. On Jan 9, 2:00 pm, redlight9...@gmail.com redlight9...@gmail.com wrote: i am trying to make callbacks to my android application from a native C thread using JNI. however

[android-developers] Re: JNI - FindClass() returns null

2009-01-12 Thread fadden
On Jan 9, 2:00 pm, redlight9...@gmail.com redlight9...@gmail.com wrote: i am trying to make callbacks to my android application from a native C thread using JNI.  however when i call FindClass it returns a NULL value.   i need to get the jclass value returned by FindClass() to call