So I am building a lean-back launcher app that will work on an android based streamer.
I've read all of Google's specifications in order to build a custom launcher.
Now in order of it to be a launcher, I need the app to behave as the default launcher of the streamer so it will be the first thing to open on boot.
I really couldn't find too much information regarding this subject when it comes to lean-back apps but only for normal mobile apps.
I've tried adding the HOME and DEFAULT categories to the MAIN activity in the manifest (as shown below) and it didn't work but I am also not even sure if this work only for mobile apps or lean-back apps as well because the lack of information I could find -
<activity android:name=".activities.SplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
In addition, I'd like to know if there is anyway doing this without asking the user to choose the default launcher but just making it as default automatically.
Thanks in advance for all the helpers.