关于主要行动和类别发射的Andr​​oid清单信息 [英] Info about Action MAIN and Category Launcher in Android Manifest

查看:114
本文介绍了关于主要行动和类别发射的Andr​​oid清单信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android清单文件,你是什么类启动器和行动主要手段       
分类机器人:名称=android.intent.category.LAUNCHER       
操作机器人:名称=android.intent.action.MAIN

是否有可能使一个活动laucher,另外一个主要的行动?

In the Android manifest file, what do you mean by the category Launcher and action MAIN
category android:name="android.intent.category.LAUNCHER"
action android:name="android.intent.action.MAIN"

Is it possible to make one activity the laucher and another one the main action?

推荐答案

活动将经常需要支持 CATEGORY_DEFAULT ,以便他们可以找到 Context.startActivity()。因此, CATEGORY_DEFAULT 可以出现的次数。

Activities will very often need to support the CATEGORY_DEFAULT so that they can be found by Context.startActivity(). So, CATEGORY_DEFAULT can appear number of times.

Android的哪一个先出现在清单中,但它具有活动开始 CATEGORY_LAUNCHER

Android does not grab whichever one appears first in the manifest but it starts with activity having CATEGORY_LAUNCHER.

CATEGORY_LAUNCHER :该活动可以是任务的初始活性和列在顶层的应用程序启动

CATEGORY_LAUNCHER : The activity can be the initial activity of a task and is listed in the top-level application launcher.

有关详细信息请参考:<一href="http://developer.android.com/guide/topics/intents/intents-filters.html">http://developer.android.com/guide/topics/intents/intents-filters.html

这篇关于关于主要行动和类别发射的Andr​​oid清单信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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