Freeform windowed mode
isn't exclusive to DeX, as Chrome OS has it, Huawei desktop, Razor Project Linda also along with many other products too.
All you need to do, is remove the window decor overrides to restore the titlebar functionality,
and add something like the following to the manifest - Samsung provides a better way, but this adds compatibility with all Android desktop devices:
Quote:<activity android:name=".MyActivity"> <layout android:defaultHeight="9999dp" android:defaultWidth="9999dp" android:minHeight="450dp" android:minWidth="300dp" /> </activity>
(Official Android developer page guide:
https://developer.android.com/guide/topi...ml#running )
And thats it!!!
You can test multi-window on pretty much any modern Android handset to see how it adapts to sudden window size changes, this is something that will improve Kodi for mobile users too, if they wish to watch Kodi whilst doing something else.
*Side notes:
Also to fix the problem with the app pausing on window focus loss (on any device running multi-window mode not just desktops), you just need to replace the lines of code 'onPause' & 'onResume' with 'onStop' & 'onStart' respectively.
here is Samsungs alternative way to force full screen mode:
Quote:<!--fullscreen window--> <meta-data android:name="com.samsung.android.dex.launchwidth" android:value="0" /> <meta-data android:name="com.samsung.android.dex.launchheight" android:value="0" />