在一个应用程序捆绑额外的应用程序(由我自己建)? [英] Bundle additional apps (built by myself) in one app?

查看:168
本文介绍了在一个应用程序捆绑额外的应用程序(由我自己建)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立的人视力不好了启动程序,我有专门为普遍可取得3个额外的应用程序:计算器,天气应用程序和音乐播放器

I have built a launcher for people with bad eyesight, I have 3 additional apps made specifically for universal access: a calculator, a weather app and a music player.

要包括他们在我启动我的codeS simly复制我的发射包内,并使用意图打开它们(他们基本上是相同的应用程序的不同的活动),但问题是,我的启动已经内置推出普通的应用程序(如每个发射器那样),我不想把事情弄糟code添加图标,不同的行为。

To include them in my launcher I could simly copy their codes inside my launcher package and use an intent to open them (they would basically be different activities of the same app) but the problem is that my launcher is already built to launch regular apps (like every launcher does) and I don't want to mess up the code adding icons with a different behavior.

有几次我在下载的Andr​​oid应用程序,并结束了与更多的应用程序,我想大部分的时间这些的含有某种形式的垃圾邮件。因此,尽管这是一个恼人的使用功能,它表明这是可能的。但我还没有碰到过这样的一段时间,所以我不知道它是否还是可以的。

A couple of times I've downloaded an app in android and ended up with more apps that I wanted most of the time these ones containing some sort of spam. So while this is an annoying use of the feature it shows this is possible. But I have not come across this for a while, so I'm wondering if it's still possible.

我怎么可以捆绑我的应用程序在同一个应用程序下载?它仍然是可能的吗?这是如何的情况目前如何处理?

How can I bundle my apps in the same app download? Is it still possible? How is this case scenario currently handled?

推荐答案

所以基本上你需要在你的清单多个发射器类别,活动,你需要看到发射架。

so basically you need to have multiple launcher categories in your manifest, for activity that you need to see on launcher.

例如

 <activity android:name=".activities.A" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".activities.B" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

这篇关于在一个应用程序捆绑额外的应用程序(由我自己建)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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