Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Launch Your .NET Application on Samsung Smart TV

Kangho Hur edited this page Aug 10, 2018 · 9 revisions

To .NET and Xamarin.Forms developers, we are very excited to share how to run Xamarin.Forms applications on the actual Samsung Smart TV 2018 models. Running Xamarin.Forms applications on the TV product will help Xamarin.Forms to extend its influence to the world.
Try out and feel the remarkable moment to run your applications on the Samsung Smart TV!

If you have a Tizen project already added on your application, you are ready to go. Or the generous blog is right here to help you with adding the Tizen project.

⚠️ .NET app is only supported on Samsung Smart TV 2018 or later models which use Tizen 4.0 as a platform.
See here for a detailed support model.

If you are totally new to develop a Tizen .NET application, start by browsing the Tizen development guides and installing Visual Studio Tools for Tizen.


Development Environment

Windows

If you have Visual Studio Tools for Tizen installed, you are almost done for the development environment. If you are not, install the extension tool first. Installing Tizen SDK automatically follows after.

Mac

No extension tool for Visual Studio for Mac is provided. You should download and install Tizen SDK on here.


Now, check out 2 more extensions on Tizen Package Manager (Tools > Tizen > Tizen Package Manager)

For Mac users, launch the package-manager on Mac.

  • Samsung TV Extension
  • Samsung Certificate Extension

You can find the extensions on "Extension SDK" tab, and install those if they are not.

image


Connect SDK to TV

You can connect your SDK to a TV device as a remote device. Before you connect to the TV, make sure

  • your computer and the TV are on the same network.
  • you prepare a certificate profile.

  1. Enable Developer Mode on your TV device
    1. Open the "Smart Hub".

    2. Select the "Apps" panel.

      image

    3. In the "Apps" panel, enter "12345" using the remote control or the on-screen number keypad. You will then see the secret popup appears. 😮

      image

    4. Switch "Developer mode" to "On".

    5. Enter the host PC IP which you want to connect to the TV, and click "OK".

    6. Reboot the TV.

      image

After the reboot, open the "Apps" panel and check out the "Developer Mode" is marked at the top of the screen.

image


  1. Connect the TV to SDK

    1. On your Visual Studio, go to "Tools > Tizen > Tizen Device Manager".

      For Mac users, launch device-manager on Mac.

      image

    2. Click "Remote Device Manager" and "+" to add a TV.

      image

    3. In the "Add Device" popup, enter the information for the TV you want to connect to and click Add.

      image

    4. Back to the Device Manager window, select the TV from the list, and switch "Connection" to "On".

    image

When the TV is successfully connected, you can see the TV is connected as a device on the Visual Studio toolbar.

image

Now you are ready to launch your applications on the TV. What a moment!


Launch Application

Visual Studio (Windows)

On window, you have everything prepared by connecting the TV as a device. You can launch your application right through the Visual Studio. I normally use the shortcut, Ctrl + F5, to quickly start the application.

Debug mode will be available in the future

Visual Studio for Mac

You can use Terminal to install and launch the application, because no Tizen extension tool is provided for Visual Studio for Mac. After building the Tizen project, go to Terminal, move to the output folder and execute the commands like following.

MacBook:~ jay$ sdb install org.tizen.example.Hello.Tizen-1.0.0.tpk
MacBook:~ jay$ sdb shell 0 execute <APP_ID>

sdb tool is located where Tizen Studio is installed, for example ~/tizen-studio/tools/.

You can check the <APP_ID> in the tizen-manifest.xml file.


The application you installed on the TV will be automatically removed when the TV is turned off and on with cold boot.

Start Now

The most tricky part will be to find a TV around you or maybe to get a new one, but you will find it worth to try launching your .NET applications on the Samsung Smart TV. If you are a Xamarin.Forms developer, you are also a TV application developer from now.
Next time I will come up with Publishing Your TV Application.