HI,fadden I am very sorry.I don't know very well about jni,and I still don't know the way to pass the data buffer (point of void *)from native code to the android application.Could you give me further explanation or give a example to do this.I have read some document about jni,but it seems android's jni is difference with stand java jni.so,I don't know how to to archive this without the document.Thanks in advance.
2009/8/5 fadden <[email protected]>: > > Check the archives on the android-ndk list, e.g.: > > http://groups.google.com/group/android-ndk/browse_thread/thread/36a4d13cb0d4bc26# > http://groups.google.com/group/android-ndk/browse_thread/thread/a610cfe73aa2618e/c27be634e3305304 > > On Aug 4, 12:23 am, frog <[email protected]> wrote: >> Hi,all >> Have some tryed to pas databuffer on android by jni?I have a >> native method like this: >> int foo(void * buffer, //(out param) the point to the buffer >> int *buffersize //(out param) the point to the buffer size >> { >> a = foo(); >> b = foo1(); >> return 0;} >> >> And I want to use it in android application to pass the buffer data to >> the application,How can I do this? >> Thanks in advance. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

