在 ActivityManagerService 里启动 Launcher

Lollipop/frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java

    Intent getHomeIntent() {        Intent intent = new Intent(mTopAction, mTopData != null ? Uri.parse(mTopData) : null);        intent.setComponent(mTopComponent);        if (mFactoryTest != FactoryTest.FACTORY_TEST_LOW_LEVEL) {            intent.addCategory(Intent.CATEGORY_HOME);        }        return intent;    }    boolean startHomeActivityLocked(int userId, String reason) {        // ...         Intent intent = getHomeIntent();        // ...     }

参考文章

Android系统默认Home应用程序(Launcher)的启动过程源代码分析

更多相关文章

  1. Android实现再按一次(返回键)实现退出(应用程序)
  2. 简单android Service 创建与启动示例
  3. Android应用程序全屏显示的方法
  4. android system services startup process
  5. Android(安卓)Studio 使用NDK编译时常见的问题
  6. android开机自启动的后台Service的实现 .
  7. Android获取应用程序的信息
  8. Android(安卓)adb命令启动系统组件
  9. android studio 安装后无法启动问题

随机推荐

  1. Android为什么要用JAVA做应用开发语言而
  2. Android高性能编程
  3. Android 串口通讯-------android -serial
  4. Android 实现变色状态栏
  5. Android本地层基础结构
  6. 解决Android8广播的静态注册接收不到问题
  7. android 中http请求的容错管理
  8. android 常用测试框架
  9. 详解Serializable
  10. Android ListView:实现item内部控件的点击