APK中的Android APK? [英] android APK within an APK?

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

问题描述

正如我上面的问题所述,是否可以在另一个 apk 中包含一个 apk 文件?为了进一步解释,这是我的情况:

我有两个应用程序,第一个应用程序通过 Intent 调用另一个应用程序.. 我对此没有问题.. 但我需要的是只安装一个 apk 文件而不是两个.我想到的第一件事就是将 .apk 文件放入另一个 .apk 文件中.我真的不知道这是否可能,这就是为什么我需要您对此进行处理.但如果这是不可能的,我希望有人能告诉我做这种事情的最佳实践是什么.

我可以将其作为一个应用程序,但这将是我最后的解决方案.

解决方案

也许 Android 库正是您要找的.这是一个可以放置一些通用代码并将其包含在多个应用程序(apk)中的地方.

请参阅有关图书馆项目的文档.>

As stated in my question above, is it possible to have an apk file within another apk? To further explain, here is my situation:

I have two apps and the first one calls the other through an intent.. I don't have problem with this.. But what I need is to install only one apk file instead of two. And the first thing that came into my mind is to put a .apk file inside the other .apk file.. I really don't know if this is possible that's why I need your take on this. But if this is not possible, I hope someone can tell me what would be the best practice to doing this kind of thing.

I can make it as one application, but that would be my last solution.

解决方案

Perhaps an Android Library is what you are looking for. This is a place where you can put some common code and include it in multiple applications (apks).

See this documentation on library projects.

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

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