摘要: Android桌面程序提供了应用添加和删除桌面快捷方式的功能以及判断快捷方式是否存在,只要传入快捷方式标题、图标及点击快捷方式执行的应用Intent即可。代码如下:1、Android添加桌面快捷方式/** * 为当前应用添加桌面快捷方式 * * @param cx * @param appName * 快捷方式名称 */public static void addShortcut(Context cx) { Intent shortcut = new Intent("com.android.launcher.action.INSTALL_SHORTCUT"); ... 阅读全文
posted @ 2013-04-13 21:29 有创软件工作室 阅读(1566) 评论(0) 推荐(1) 编辑