How to make app as a default system launcher?

爱⌒轻易说出口 提交于 2019-12-05 23:17:19
mayankdtu

It is not possible to change the user preferences. Google does not allow developer to change user preferences.

A workaround may be useful, you can check for if your application is default launcher through a service and then prompt user to choose your application as default.

You can find how to check if your application is the default launcher from here (tried this one, it works for me) or here

Then you can prompt the user to select your application if it is not the default launcher. A workaround to do so is given here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!