Where can I find a guide or a sample for creating a library that expose intents, and compiled as a jar?
I find it very hard to achieve this simple capability and don’t understand why.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That is not presently possible.
You are welcome to create an Android JAR, but it cannot on its own “expose intents” for any likely translation of the phrase “expose intents”.
If the JAR contains activities, services, receivers, and providers, those have to be registered in the manifest of the project that is incorporating that JAR.
If your code that you would like to have in the JAR needs resources, then you cannot package the code as a JAR, but instead would need to use an Android library project. Once again, any components (e.g., activities) defined in the library have to be registered in the manifest of the project that is incorporating the library.