How to send library for Android

I want to create a library for Android. In what form can I send it? jar, apk or something else? How can I do this so that other developers can use my library in their application?

+7
android jar apk android-library
source share
3 answers

If your library is pure Java code, the JAR is fine, possibly with documentation, etc.

If you need resources or other things other than Android for Android, you should look at the Android library project . This is best supplied as source code, although there are tricks to package it in (mostly) binary form. And the new development, built on the basis of Gradle, should facilitate the creation of library projects that are sent in binary (not original) form.

+3
source share

Like an ordinary jar. Your library classes will be converted to Dalvik VM bytecode along with the specific application.

+1
source share

I would just toss your code into the link text and allow users to download the code or deploy it from there. I have seen quite a few Android libraries on GitHub.

+1
source share

All Articles