展会信息港展会大全

如何设置快捷方式
来源:互联网   发布日期:2016-01-14 11:33:55   浏览:3071次  

导读:private void addQuikeButton() { Intent intent=new Intent(); //设置快捷方式的图标 intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, Intent.ShortcutIconResource.fromContext (this, R.drawable.img)); //设置快捷方法的名称 intent.putExtra(Int...

private void addQuikeButton() {

Intent intent=new Intent();

//设置快捷方式的图标

intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, Intent.ShortcutIconResource.fromContext(this, R.drawable.img));

//设置快捷方法的名称

intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, "点击启动程序");

}

赞助本站

人工智能实验室

相关热词: android开发 android教程

AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港