在Android中有没有任何DLL或DLL的概念? [英] Is there any DLL or DLL like concept in Android?

查看:164
本文介绍了在Android中有没有任何DLL或DLL的概念?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道我们可以使用一个概念Java Package,但是我只想要
知道Android是否提供了一个DLL或者DLL这样的概念,我们可以在这里写一个
的大部分功能。


  • 或者我们可以使用活动来提供DLL的目的。 >


  • Android操作系统上是否有类似DLL的概念?我们可以在Android上开发一个更好的模块化和其他优势的DLL吗?



    感谢和问候,
    Prashant。

    解决方案

    我不知道你为什么专门寻找DLL。我所知道的是,您需要像库一样的代码重用。 Java Packages(jar文件)具有相同的模块化目的。



    如果要在C ++中编写代码,请查看 Android NDK 并创建一个.so文件(Linux等效于DLL)



    可能您正在寻找某种内容提供商这可以帮助您跨应用程序共享。


    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.

    解决方案

    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或DLL的概念?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆