How to make a DLL for an Android application?

advertisements

I have developed a class in eclipse for my android application. Now I am using the same class for all my other applications. So is it possible to make that class as a dll or something which I can refer in all my applications? So if I change something in the class so I dont have to do it in my all the projects.

Thanks in advance.


You can use an Android project as a library. This library can only contain a single class, or can contain multiple views and activities.

Then you can reference this library from different Android project, much like you would do with a DLL in a C++ application.

Check out the Android Documentation to see how you can create a library. If you're using Eclipse, this is very easy (usually 3 clics).