The <uses-library>
element is for add-ons supplied as extensions to the firmware. AFAIK, it will not be usable for your scenario.
Most likely, you will need to implement a service that exposes an API via AIDL, or uses a set of documented Intent
actions to exchange data with other applications, or exposes a ContentProvider
.
Otherwise, package your code as a JAR, not an APK. You can see many examples of this in my github repositories (all of the cwac- ones follow this pattern).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…