android桌面快捷方式的创建和查询
桌面快捷方式的创建
Intent intent = new Intent("com.android.launcher.action.UNINSTALL_SHORTCUT");intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.app_name));ComponentName comp = new ComponentName(getApplicationContext(), Shortcut.class);intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT,new Intent(Intent.ACTION_MAIN).setComponent(comp));sendBroadcast(intent);