一个安装两个应用程序的 .apk 文件 [英] One .apk file that installs two apps

查看:37
本文介绍了一个安装两个应用程序的 .apk 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个关于具有两个不同 .apk 的 Android 应用程序(或包含在一个 .apk 文件中的两个应用程序)的问题

This is a question concerning android applications with two different .apks (or two apps contained in the one .apk file)

我有两个应用程序,它们做完全不同的事情但相互关联,比如一个是标准用户应用程序,一个是管理应用程序.但用户既可以是用户,也可以是管理员.我想知道我是否可以创建一个 .apk 文件来在手机上安装两个应用程序?我怎么知道这件事?

I have two apps which do completely different things but are related, say one is a standard user app and one is an admin app. But a user can be both a user and an admin. I am wondering is it possible for me to create one .apk file that installs two applications to the phone? And how would I got about this?

谢谢,马特

推荐答案

这取决于您对应用程序"的定义.如果您使用更官方的定义,则不能安装 2 个应用程序,因为您的 manifest.xml

It depends on your definition of "application". You cannot install 2 applications if you use the more official definition, as you can have only 1 <application> in your manifest.xml

您可以在您的 manifest.xml 中定义多个活动,它们可以做单独的事情,这样您就可以在一个 中拥有两个人可能描述为应用程序"的东西APK

You can define several activities in your manifest.xml, and they can do seperate things, so in that way YOU CAN have 2 things a person might describe as "application" in one APK

只需定义多个活动并使用它们就可以定义为一个选项,但这取决于您对应用程序"的定义,但在这种情况下,我会说它会起作用

Just define multiple activities and use those could be defined as an option, but it depends on your definition of 'application', but in this case I'd say it would work

这篇关于一个安装两个应用程序的 .apk 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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