启动"启动应用程序的抽屉"从应用程序? [英] Launch "launcher app drawer" from an application?

查看:152
本文介绍了启动"启动应用程序的抽屉"从应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从应用程序到启动应用程序的抽屉与瓷砖应用程序图标启动(或回),而不是桌面上。

I would like to launch (or go back) from an application to the launcher app drawer with the tiled app icons, not to the desktop.

Intent intent = new Intent("android.intent.action.MAIN");
intent.setComponent(new ComponentName("com.android.launcher","com.android.launcher2.Launcher"));
intent.addCategory("android.intent.category.LAUNCHER");
startActivity(intent);

这code推出桌面。我想到达应用程序图标。我怎样才能做到这一点?启动的清单似乎并没有给予任何活动呢?

This code "launches" the desktop. I would like to reach the app icons. How can I achieve that? TheManifest of Launcher doesn't seem to give any activity for this?

葛瑞格尔

推荐答案

正如aneal指出,因为它不是由Android在启动应用程序清单暴露你不能说这种看法。

As pointed out by aneal, you can't call this view as it's not exposed by Android in the launcher app manifest.

这篇关于启动"启动应用程序的抽屉"从应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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