android.intent.action.MAIN与android.intent.category.LAUNCHER的区别
2016-04-29 17:43
183 查看
其中Android.intent.action.MAIN 与 android.intent.category.LAUNCHER
决定应用程序在luncher中的显示方式;
两者的作用如下:
android.intent.action.MAIN决定应用程序最先启动的Activity
android.intent.category.LAUNCHER决定应用程序是否显示在程序列表里
所以:
如果只有一个activity的应用程序只声明了 android.intent.action.MAIN ,没有声明 android.intent.category.LAUNCHER,eclipse运行是将报错:
如果存在多个activity都声明了android.intent.action.MAIN与android.intent.category.LAUNCHER会出现什么情况呢?------------------将会有多个图标显示在桌面上。
决定应用程序在luncher中的显示方式;
两者的作用如下:
android.intent.action.MAIN决定应用程序最先启动的Activity
android.intent.category.LAUNCHER决定应用程序是否显示在程序列表里
所以:
如果只有一个activity的应用程序只声明了 android.intent.action.MAIN ,没有声明 android.intent.category.LAUNCHER,eclipse运行是将报错:
如果存在多个activity都声明了android.intent.action.MAIN与android.intent.category.LAUNCHER会出现什么情况呢?------------------将会有多个图标显示在桌面上。
相关文章推荐
- CLOSE_WAIT问题
- RAID5 的那些事
- async & await 的用法
- 百度地图开发(1)-----如何从hello baidumap定位所处城市并进行切换
- jenkins email配置
- 172. Factorial Trailing Zeroes
- HDU 1789 Doing Homework again 贪心
- 关于使用thumbnailator生成缩略图异常问题
- 关于发邮件报错535 Error:authentication failed解决方法
- You raise me up
- Neutron/L3 High Availability VRRP
- 【HDU】 1532 Drainage Ditches
- count(字段)不统计null值http://blog.csdn.net/lwei_998/article/details/6112810
- FZCCHJW--GB1-0-GBpc-EUC-H:在系统中未找到字体;已替换缺少的字体。
- leetcode 11. Container With Most Water
- stitching detail输出的dot图含义
- 从零开始写聊天机器人
- AI教程!教你绘制扁平化风格的卡通人物肖像(四人组合篇)
- UVa 10976 Fractions Again?!
- RAID详解[RAID0/RAID1/RAID10/RAID5]