J'essaie de recevoir un événement chaque fois qu'un nouveau raccourci a été créé sur Homescreen/Luncher. Après que mon application reçoive l'événement, j'aime modifier le raccourci. Ma configuration actuelle est répertoriée ci-dessous, mais je ne reçois jamais d'événement.Comment recevoir la diffusion de INSTALL_SHORTCUT sur Android
<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>
Est-ce que mon idée est possible?
Cordialement, André
J'ai supprimé la permission mais cela ne fonctionne toujours pas. J'utilise l'émulateur de Nexus Studios Nexus. –