Shortcut 快捷方式 应用 - 1

Shortcut 快捷方式 使用 - 1快捷方式的使用[原理]1. 系统有一个BroadcastReceiver 其action com.androi

Shortcut 快捷方式 使用 - 1
快捷方式的使用


[原理]
1. 系统有一个BroadcastReceiver 其action = "com.android.launcher.action.INSTALL_SHORTCUT" 用于接收与快捷方式有关的Intent
2. 我们要做的就是:把快捷方式的有关信息装入对应的Intent 然后发送出去即可

[代码]
1. 定义对应的Intent

sendBroadcast(intent);



over!