| [Samsung DeX] Optimization of VNC client for Samsung DeX | ||||
|
Blog
May 25, 2017
1
|
||||
|
As you know, in late March, at the same time with the new flagship, Samsung introduced a new product - DeX station for Galaxy S8/S8+. It is designed to give a desktop experience for you Smartphone with the help of a special mode. This mode is activated when the Smartphone is placed in DeX station. Also you will need a mouse, a keyboard and a monitor connected via HDMI. Besides all of this, it is necessary the application have to support the new mode. A number of popular apps in the Play Store already did it. In order for your application to allow the user to get the Desktop Experience, you must follow a several simple recommendations presented on the Samsung developers portal: http://developer.samsung.com/samsung-dex/modify To demonstrate the process of "DeXification" of the Android app, I'll take the open source VNC client - https://github.com/CyberShadow/android-vnc-viewer and try to optimize it for DeX mode. Why have I chosen the VNC client? It is the most convenient to work with the remote machine on a large screen with a mouse and a keyboard. So, DeX mode of this kind of applications seems the most comfortable way.
So, you can use Drag and Drop to send text to the remote machine. Similarly it works with binary data (for example, files). As a result, I have the android application, adapted to the DeX mode. Of course, some details could be improved, but I tried to show how with minimum effort create new mode of the existing app. During my work, I did not have to use additional SDKs. All the necessary functionality is available in the Android API since version 24. The amount of work does not require a revision of the application architecture and does not exceed several dozen lines of code. I hope my experience will help you to optimize your application for Samsung DeX. The source code of the application available here : https://github.com/DeXEvangelistRussia/dex-vnc-viewer |
||||
|
||||