Gregory Ray wrote: > Please excuse my newbness, I come from the land of C/C++ and am new to Java. > > I want to create a self contained library that I can easily drop into an > android project and run. > > I can do this by creating a shared object via the NDK and JNI but the > limitation there seems to be lack of audio support which is important > for this library. > > Is there a way to create a library in the java/android world? Ideally > the developer could just drop it into the project and could access > methods via headers maybe? > > Any help/samples would be fantastic and appreciated.
They're called JARs. You can see some examples of creating Android JARs and consuming them in the CWAC projects on my github page: http://github.com/commonsguy Note that Java does not have headers in the way C/C++ does. You may wish to spend a few weeks on Java, outside of Android, before diving in trying to create Java code for others to reuse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

