Trying to UNINSTALL_SHORTCUT but shortcut won't go away

后端 未结 5 796
小蘑菇
小蘑菇 2020-11-28 10:18

I created a test Activity that installs a shortcut of itself on the Android Home screen. When you click a button, the Activity is supposed to remove the same shortcut it ju

5条回答
  •  情话喂你
    2020-11-28 11:00

    You need to setAction for shortcutIntent like:

    shortcutIntent.setAction(Intent.ACTION_MAIN);
    

提交回复
热议问题