I'm not 100% sure on what you mean. If you want an .h file with headers for you to use in the NDK for sound, for now non exists, if you would like to use the media player API you would have to create a pretty complex SDK for your users since you'll have to write either an application or pack code in a .jar what will contain the java part of you SDK that will call and use the mediaPlayer. the you will have to use JNI to control this java code and supply the .h file generated by javah as your interface. hen users will have to use NDK and SDK to compile their apps in two stages.
if all you wanted is a library in java that uses your native code and exposes it to the world, you better use an activity, contentHandler or Broadcasts to share your code as it's done in android (you can read on all the above in the reference guide for android developers). If you want a summ up drop me a line to the mail box, be more specific for what you want i'll give you an answer... On Feb 17, 8:40 pm, Mark Murphy <[email protected]> wrote: > 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

