top

Samsung Smart TV SDK Tutorial Explorer perspective

Published 2014-10-27 | (Compatible with SDK 5.0,5.1)

This document provides a tutorial on how to use Samsung Smart TV SDK Tutorial explorer perspective which is integrated within SDK IDE.

Introduction

Samsung Smart TV SDK Tutorial Explorer is a SmartTV SDK feature where you can explore all important tutorials at a single place. Using this feature, you can:

  1. Explore different SmartTV tutorial applications
  2. Check the documentation of tutorial applications
  3. Explore the source code of tutorial applications
  4. Create a new project using a tutorial application as base template

Prerequisites

To use Samsung Smart TV SDK Tutorial Explorer, you will need:

  • Samsung SmartTV SDK 5.0 on your machine.
  • A working Internet connection to access online documentation and source code.

To view documentation of a tutorial in LINUX, you will need:

  • libwebkitgtk-1.0-0 on your machine. Please run sudo apt-get install libwebkitgtk-1.0-0.

User Guide

Samsung Smart TV SDK Tutorial Explorer perspective

To open the perspective Samsung Smart TV SDK Tutorial Explorer, go to Window ‣ Open Perspective ‣ Others

Figure 1: Opening Samsung SmartTV SDK Tutorial Explorer Perspective

It opens a list of all the available perspectives. Select Samsung Smart TV SDK Tutorial Explorer.

Figure 2: Samsung Smart TV SDK Tutorial Explorer Perspective icon displayed at the right top corner

To quickly open perspective, click button on the right end of toolbar.

Figure 3: Samsung Smart TV SDK Tutorial Explorer Perspective icon displayed at the right top corner

SmartTV Tutorials view

  • It lists all tutorials available with SDK.
  • To select and explore any tutorial, click on the corresponding item in list.

Figure 4: Diagram showing the position of SmartTV Tutorials view

Documentation view

  • Displays the documentation for the selected tutorial application directly from online URL of the application.
  • Requires a working Internet connection.

Note

libwebkitgtk-1.0-0 is required on Linux machine to view documentation.

Figure 5: Diagram showing the position of Documentation view

View Source Code

To open source code, right click on the tutorial name in the tutorials list and select View Source Code from context menu.

Figure 6: Diagram showing how to open Source Code Explorer view for a tutorial

  • Source Code Explorer view gets the latest source code from Internet for the selected tutorial.
  • Previously downloaded local version of source code will be shown when Internet connectivity is not available.
  • It lists all the files of selected tutorial in tree structure and provides a view to see the code of selected file.
  • It supports only textual content. Binary content like images, cannot be previewed.

Figure 7: Diagram showing the position of Documentation view

Export to Workspace

To open source code, right click on the tutorial name in the tutorials list and select Export to Workspace from context menu.

  • The Create New Wizard takes following details from tutorial’s configuration file, which can be modified:

    • Application name
    • Copy right
    • Author’s name
    • Author’s mail
    • Author’s link
    • Author’s organisation

    Figure 8: A Sample wizard for Export to Workspace

  • It creates new project in the workspace with name given as “New widget name”.

  • It saves above changes in new project’s configuration file.

  • Gives a confirmation message at the end with path for new project.

    Figure 9: A Sample dialog for successful creation of a new project

    • It also asks user if he wants to switch to Samsung SmartTV SDK perspective for working with new project.

    Figure 10: A Sample dialog asking user to switch perspective

    Figure 11: A Diagram showing the new created project and perspective switched to Samsung SmartTV SDK