android - How to make app as a default system launcher? -


I have developed the Launcher application, the first time I installed it on the Android Android system, Amp; just one time. I've selected "Always" Now my app becomes the default launcher but when I update the app, the system re-pops the same selection dialog, I do not want to show that pop up. How to make the app as the default system launcher? To achieve this, do I need to create a system level app?

I have used the following permission to make the app a launcher

  & lt; Intent-filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.HOME" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Category android: name = "android.intent.category.MONKEY" /> & Lt; / Intent-Filter & gt;  

It is not possible to change user preferences, Google does not allow developers to change user preferences. is.

There can be an alternative solution, you can check whether your app is the default launcher via a service and then the user is prompted to choose their app as the default.

You can check whether your application is the default launcher or not (after trying this one, it works for me) or

then you select the user If this is not the default launcher is given an alternative solution to do so.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -