Is there any DLL or DLL like concept in Android?

2019-06-20 09:33发布

问题:

  1. We know that we can use a concept "Java Package", but I just wanted to know whether Android has provided a DLL or DLL like concept where we can write a most of the functionality.

  2. Or can we use Activity for serving a purpose of DLL.

Is there any concept like DLL on Android OS? Can we develop a DLL for better modularization and other benefits on Android?

Thanks and Regards, Prashant.

回答1:

I am not sure why you are specifically looking for DLL. What I realize is that you need something like a library for code reuse. Java Packages (jar files) serve the same purpose of modularization.

If you want to code in C++ look into Android NDK and create a .so file (Linux equivalent for DLL)

May be you are looking for some sort of content provider that can help you with sharing across applications.



标签: android dll