Android how to programmatically hide launcher icon

前端 未结 5 1761
孤独总比滥情好
孤独总比滥情好 2020-11-28 21:22

my app is designed to only need to be run once. As such I want to hide the icon from the launcher after the first run, but without uninstalling the app.

I have seen

5条回答
  •  囚心锁ツ
    2020-11-28 21:41

    You can have an app without a launcher by NOT including an intent filter with MAIN and LAUNCHER in the declaration of the Activity in the AndroidManifest - the question then becomes how to do the first kick off.. Widget maybe ?

提交回复
热议问题