每次在主屏幕/Luncher上创建新快捷方式时,我都会尝试接收事件。我的应用程序收到事件后,我想修改快捷方式。下面列出了我当前的配置,但我从未收到事件。
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" />
<application>
<receiver
android:name=".InstallShortcutReceiver"
android:permission="com.android.launcher.permission.INSTALL_SHORTCUT">
<intent-filter>
<action android:name="com.android.launcher.action.INSTALL_SHORTCUT" />
</intent-filter>
</receiver>
</application>
我的想法可行吗?
顺致敬意,
安德尔