android开发使用例子

上传:Fanni_Lee 浏览: 41 推荐: 0 文件:DOC 大小:53KB 上传时间:2019-01-21 02:01:07 版权申诉
/** * 为程序创建桌面快捷方式 */ private void addShortcut(){ Intent shortcut = new Intent("com.android.launcher.action.INSTALL_SHORTCUT"); //快捷方式的名称 shortcut.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.app_name)); shortcut.putExtra("duplicate", false); //不允许重复创建 //指定当前的Activity为快捷方式启动的对象: 如 //com
上传资源
用户评论

zwwyhy 2019-01-21 02:01:07

初学者 很有用的

shiwang84890 2019-01-21 02:01:07

感觉还不错,不过对于初学的人来说有点复杂