简体   繁体   English

对另一个应用程序使用本机android共享库

[英]Using a native android shared library for another application

I have an application that has a naive library in it. 我有一个其中包含一个天真的库的应用程序。 I want to have another application access the same so library. 我想让另一个应用程序访问相同的库。

Is this possible? 这可能吗?

You can set an intent filter to an activity of the first application. 您可以为第一个应用程序的活动设置一个意图过滤器。 Then you can send an activity to this application with the specific intent in order to get your job done and get the result. 然后,您可以按照特定的意图向该应用程序发送活动,以完成您的工作并获得结果。

Of course, you can add this library to your second application, but I suppose based on your question that this is not what you want. 当然,您可以将此库添加到第二个应用程序中,但是基于您的问题,我想这不是您想要的。 So, basically I think the first solution will do your job. 因此,基本上,我认为第一个解决方案可以完成您的工作。

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM