Android的action.MAIN和category.LAUNCHER功能 [英] Android action.MAIN and category.LAUNCHER function

查看:702
本文介绍了Android的action.MAIN和category.LAUNCHER功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们提到 android.intent.action.MAIN android.intent.category.LAUNCHER 作为意图过滤器在的Manifest.xml发射活动。什么是小鬼。这两个?他们有什么功能?

We mention android.intent.action.MAIN and android.intent.category.LAUNCHER as Intent filter of the launcher activity in the Manifest.xml. What is imp. of these two? What are their functionality?

推荐答案

文档

类别 - 提供额外的   有关行动信息   执行。例如,   CATEGORY_LAUNCHER意味着它应该   出现在发射器作为顶层   应用程序,而   CATEGORY_ALTERNATIVE意味着它应该   被包括在备选的列表   用户可以在执行操作   一段数据。

category -- Gives additional information about the action to execute. For example, CATEGORY_LAUNCHER means it should appear in the Launcher as a top-level application, while CATEGORY_ALTERNATIVE means it should be included in a list of alternative actions the user can perform on a piece of data.

主要手段,这项活动是当你启动应用程序,该活动创建的应用程序,即入口点。

MAIN means that this activity is the entry point of the application, i.e. when you launch the application, this activity is created.

这篇关于Android的action.MAIN和category.LAUNCHER功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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