创建快捷图标
来源:互联网 发布:淘宝客服售后话术技巧 编辑:程序博客网 时间:2024/05/19 05:04
权限
<uses-permissionandroid:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
//创建快捷图标的Intent
Intent intent = new Intent();
intent.setAction("com.android.launcher.action.UNINSTALL_SHORTCUT");
intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, BitmapFactory
.decodeResource(getResources(), R.drawable.ic_launcher));
intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, "手机快捷方式");
//shortCutIntent 点击快捷方式要做什么
Intent shortCutIntent = new Intent();
shortCutIntent.setAction("android.intent.action.MAIN");
shortCutIntent.addCategory("android.intent.category.LAUNCHER");
shortCutIntent.setClassName(getPackageName(),
"com.zw.safedog.SplashActivity");
intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortCutIntent);
sendBroadcast(intent);
- Android创建快捷图标
- 创建快捷图标
- 创建桌面快捷图标
- 创建快捷图标
- 创建快捷图标
- ubuntu创建快捷图标
- 创建桌面快捷图标
- 创建显示桌面快捷图标
- android 创建快捷图标demo
- Android 创建桌面快捷图标
- 创建,删除快捷图标shortcut android
- 创建网站快捷图标只需两行代码
- 创建,删除快捷图标shortcut android
- 43_创建桌面快捷图标
- Android_创建和删除快捷图标
- android应用创建桌面快捷图标
- 安卓创建快捷图标的代码
- 创建安卓桌面快捷图标
- 使用PHPMailer实现邮件发送代码分享
- R语言︱函数使用技巧(循环、if族/for、switch、repeat、ifelse、stopifnot)
- BLE 应用解释
- Java多线程之Semaphore的介绍和使用
- ImageView的几个方法
- 创建快捷图标
- 500Error tomcat提示找不到springMVC-servlet.xml文件解决方法
- 【网虫】windows下网管员必备的几条网络相关命令
- nyoj32 组合数 深搜版
- Myeclipse的Ctrl+Shift+F格式化代码快捷键无效
- Android 天气预报(2)
- android线程相关
- Drink It (模拟)水
- (今日问题)连接池与数据源