viernes, 1 de julio de 2016

How to Develop on Samsung Smart TV with Tizen (Part I)

Tizen is an OS based on linux and used on Samsung Smart TV devices. It is the Samsung Way to compite with Android TV.

Let see how difficult is to develop an app on Tizen for a Samsung Smart TV.  

Let´s Start

Our target plataform is a Macbook Pro with OSX and a Samsung Smart TV 

Step #01: Install SDK

First, we are going to download Tizen SDK from official page:






There is Another links to downloads, but I guess that is older (2014): It is almost a raw eclipse, so I am going to discard this version from:


 /Users/pabloin/tizen/workspace



We can see that the Tizen SDK is based on ecliplse





Step #02: First Tizen Project - Docs

With Tizen SDK installed, we are going to pick a basic project from the official Tizen Developer Site:

We could be interested in
But, that demos aren´t for Smart TV apps, but also por mobile devices... So, I have to find another link with a good tutorial for Samsung Smart TV

The start point that we have been looking for is:
And the Sample App is:
Our first observation, is that it talks about Web TV development, so It is not about Native Development. We can read:





"This section help developers in learning Tizen TV Web App development using Tizen TV APIs.."

So, let´s continue with TV Web Development, following the guide https://www.samsungdforum.com/TizenGuide/tizen1201/index.html

Our second observation, is that we need a developer account in Samsung to publish apps after we finish that. The registration Samsung page is https://account.samsung.com/account/check.do




Our third observation, is that the documentation always take away to the GitHub page, so let´s continue there:


Step #02: First Tizen Project App : SmartViewSDKQuizApp

We have a lot of projects in GitHub, but we are going to follow 
We clone it in our local pc:

/Users/pabloin/Desktop/NoCuestaNada/Mob/GitHub-tmp/samsung-tizen/SmartViewSDKQuizApp

And we are going to compile QuizApp_TV inside Tizen SDK. Again we can follow the Readme in GitHub

It say:

"We are going to create a new Tizen Web Project by selecting File->New->TIzen Web Project.
And select Templates for TV-1.0 ,select Tizen Web UI Framework Template for Master Detail Application /Multi Page Application/Navigation Application / Single Page Application based upon your requirement and give a name to the project."

But Template for TV-1.0 is not anymore... And also there is not any template for Samsung TV, only for Mobile and Wereables



But, I have already download the the project, so I am going to import it to the "Tizen-eclipse SDK"

  • File -> Import -> Existent Project
And I get the following error:


Description Resource Path Location Type
Cannot support tv-1.0. You can migrate the project with Import > Tizen > Tizen Project menu

Step #03: Tizen Emulator Update

The solution to the previous error is update the SDK to get new emulators:


And now, we can see that the project is ready to run, because it has 0 errors:

 To run the project:


And when the web simulator is call, the browser chrome is open:


And we can see the Quiz App running in the web simulator, the Chrome browser:

So, we have reach our goal to run a demo app with Tizen, the plataform to build apps for Samsung Android TV. And we can get some experience with the IDE and the emulators.

Misc: How to enable developer mode on Tizen


1) Make sure my PC and TV are on the same local network
2) Turn on TV ==> Go to Apps ==> Pressed 1, 2, 3, 4, 5
3) Turn ON developer mode. Entered the PC's IP address. Pressed OK

4) Then, I rebooted my TV.




Links 



1 comentario:

  1. Hi, your information very helpful for me because I have samsung tv.
    another blog I learn
    how to enable bluetooth on smasung tv then I reach your blog. really my today is awesome..

    ResponderEliminar