安卓:获取安装的快捷方式 [英] Android: Get Installed Shortcuts

查看:332
本文介绍了安卓:获取安装的快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过的方式,使快捷方式,但我需要找到一种方式来获得安装在手机上的快捷键列表。

I have seen ways to make shortcuts, but I need to find a way to get a list of shortcuts installed on the phone.

我希望我的用户能够选择他/她的快捷方式之一,并从我的应用程序启动。有没有办法做到这一点(一个API),或者我需要一个反思方法来调用系统服务?

I want my user to be able to select one of his/her shortcuts and launch it from my application. Is there a way to do this (an API) or will I need a reflection method to call a system service?

推荐答案

快捷方式是私有的启动器。有没有API,以及任何你试着做将是非常脆弱的不同发射器实现(和版本)将有不同的存储结构。

The shortcuts are private to Launcher. There is no API, and anything you try to do will be very fragile as different launcher implementations (and versions) will have different storage structures.

这篇关于安卓:获取安装的快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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