You shouldn't have a void* in any of the JNI C interfaces. If you need a void* that Java code can pass around you should wrapper the value with a Java object.
Callback would be handled with the invocation interface. On Jul 26, 1:26 am, sowmya <ajaychalas...@gmail.com> wrote: > Hi > I want to port c library in android for that i am writing native > interface > my c library contains generic pointers like void* .how can i define > these in java jni files .do i need to define as byte[] and typecast > in .cpp ? > Also i want to know how to handle the callbacks from c library in jni -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en