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

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

问题描述

这是关于Android应用程序有两种不同的.apks(或两个应用程序包含在一个的.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应用程序,如果你使用更多的官方定义,因为你只能有1 <应用> 的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天全站免登陆