Visual Studio Xamarin Android DLL [英] Visual Studio Xamarin Android DLL

查看:242
本文介绍了Visual Studio Xamarin Android DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建和构建一些活动作为动态链接库(DLL),可以在其他应用程序中使用

How is it possible to create and build some activities as dynamic link library (DLL) which can be used in other apps.

想象一下,我在xamarin中开发了一个具有一些活动的android应用.发布之后,我想稍后在主应用程序中导入其他活动.这意味着,例如,当用户在我的应用程序中购买了一种特殊的可能性时,该应用程序将下载相关的dll(包含活动,资源等),并将其放置在适当的应用程序存储数据文件夹中,该文件夹之后该应用程序便可以使用其包含的组件.

Imagine I develop an android app in xamarin that has some activities. I want to import some other activities later in main app after I published it. This means that for example when a user purchases a special possibility in my app then app downloads related dll (that contain activities, resources, . . .) and placed it in proper app stored data folder which after that app can uses its contained components.

推荐答案

不幸的是,您无法创建"plugin-DLL"之类的东西.您可以创建一个单独的应用程序,该应用程序将充当扩展程序",并从您的应用程序中调用其服务.例如,此博客文章中的示例a>.

Unfortunately you cannot create something like "plugin-DLL". You can create a separate app that will act as a "extension" and call its services from your app. A tutorial on how to do this is available for exmple in this blog post.

这篇关于Visual Studio Xamarin Android DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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