Create app shortcut inside the Custom Launcher in Android

后端 未结 1 1947
渐次进展
渐次进展 2020-12-12 04:05

I\'m trying to develop a custom launcher that will contain the shortcut of my installed application (or even apk files). I can create a shortcut BUT outside the application

相关标签:
1条回答
  • 2020-12-12 04:26

    What you are creating is not a launcher like the home screen, its just an application. The launcher category refers to the activity being listed in the all apps drawer. I don't think applications can add their own shortcuts otherwise spam ware could just keep adding its icon to your home screen like this and annoy every user.

    Also installUninstall_ShortCut is not how we name things in Java! Actually it doesn't match any naming convention I've ever come across

    If you want to mimic adding-shortcut-like functionality then you can get the grid view and call addView on it

    0 讨论(0)
提交回复
热议问题