kingszhen wrote: > thanks for ur answer, > u means i can't use eclipse plug and android in windows to develop > JNI? > if in the other platform(Linux) , can i use JNI? und how can i do?
You need to get hold of a code of a suitable toolchain, patch it manually to generate the appropriate libraries, and upload your library to the device, also manually. It's quite painful right now. See this article: http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-methods-bridging-cc-and-java/ Bear in mind that this is *totally unsupported* right now (AFAIA). There are no header files available for the Android libc so if you want to use libc functions you'll need to do some hacking. There are no diagnostics available, so if your library uses a symbol that's not in the stripped-down libc, you'll just get a 'file not found' error when calling System.loadLibrary() with no other information. And I've found a possible bug in dlopen() that causes libraries to be loaded incorrectly --- I need to confirm whether this is actually the case or whether I'm just doing something wrong. So, You Have Been Warned. Mind the dragons. -- David Given [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

