Louis wrote: > Our product need provide some SDK to 3rd party, and we want to provide > some services or activity in Android platform, spec for services. But > seems we can't provide it through the Jar files (Please let me know if > I am wrong :) ),
Sure you can! Take your compiled Java classes and package them into a JAR, along with instructions for what entries in AndroidManifest.xml your customers will need to add to use your services and activities. The only thing that does not work well this way is resources -- your JAR cannot package resources, nor can you reliably ensure that resources will get the same resource IDs between your code and the actual Android application. You can accept resource IDs as parameters, but you cannot "bake in" your own resources. Or, rather, I have not figured out a trick for doing this as yet. I have a chapter in the upcoming _The Busy Coder's Guide to *Advanced* Android Development_ that covers this. Fortunately, that is one of the chapters already (partially) available, so current subscribers to the Warescription can get access to this already. > And in these cases, is there any way to make our APK > as Embeded APK which 3rd party can install it with their APK without > user more actions? I do not believe this is possible. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

