导读: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, "点击启动程序");
}