8000 GitHub - sharpcj/LauncherTest
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sharpcj/LauncherTest

Repository files navigation

LauncherTest

一个简单的仿 Launcher 应用

本例实现两个功能:

  1. 系统桌面上的app图标能够排列在我们的页面上。
  2. 点击自定义桌面上的app图标,能够打开对应的app。

实现思路:

  1. 我们知道,一个应用的启动页 Activity 的 Intent 的 filter 中 包含 actionIntent.ACTION_MAINcategoryIntent.CATEGORY_LAUNCHER 信息,我们构造一个这样的 Intent 来查询所有启动页 Activity 。
  2. 用一个 RecyclerView 来展示信息。
  3. 通过 Intent 跳转到对应 app 的主页面。

运行效果如图:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0