Tizen Quick Start Tutorial

Posted on Posted in Tutorial
TizenUM_installed
Overview

This tutorial will get you started with Tizen IDE, from installing the SDK to running an application on your device.  The sections are outlined below.

  • 1. Install Java Development Kit 7 or later
  • 2. Install Tizen SDK
  • 3. Update Tizen SDK using Tizen Update Manager
  • 4. Creating a new project / Import resources into your project
  • 5. Connect your device to your PC
  • 6. Register your certificate
  • 7. Running an application on your device
Install Java Development Kit (JDK)

Java Development Kit (JDK) 7 or later must be installed to develop Tizen applications.  You can download the latest version of JDK for your operating system from the Oracle website.  The latest version as of this writing is Java SE 8u74.

Detailed installation instructions for the different operating systems are below:

Ubuntu – See the detailed installation instructions for JDK 7 and later versions.

Windows – Select the platform (32/64 bit) for your hardware and Windows version.

Mac OS – See the detailed instructions for JDK 7 and later versions.

Install Tizen SDK

After installing JDK 7 or later, you will need to install Tizen SDK.  Tizen SDK includes an IDE, Emulator, toolchain, sample code, and documentation.

  • 1. Download the latest version (2.4 Rev4 as of this writing) for your platform.
  • 2. Run the installer.
  • 3. Accept the License Agreement.  The install button will be enabled.
  • 4. Choose the SDK installation location, or leave as is.
  • 5. Click the install button.
TizenSDK_install
  • 6. Once installation is complete, click Done.

TizenSDK_install_done

  • 7. You will be prompted to run Tizen Update Manager.  Select Yes to continue onto the next section.
Use Tizen Update Manager to update/install packages

The Tizen installer from the previous section installs the packages needed for developing web applications.  If you wish to develop native applications, you must install the appropriate packages.  Using Tizen Update Manager, you can update the installed Tizen SDK packages to the latest version and install additional packages.

Update Packages

You can see the currently installed packages in the Installed Packages tab.  If there are updates available, there will Updatable text next to the remove button of the respective packages and the Update button will be enabled (Note: we’ve just downloaded and installed the latest version so all packages are up to date).

TizenUM_installed

Install new packages

You can install new packages through the All Packages tab where packages are broken up into device type and version.  Here you can install packages for Native application development, Emulators, and additional packages such as Certificate Extension.  The Advanced button shows even more packages such as Native Application development using CLI (Command Line Interface) and Tizen Advanced UI (TAU).

TizenUM_all

Install Certificate Extension

Certificate Extension allows you to request and register certificates through Tizen IDE for Samsung Tizen devices.  Go ahead and install it now.

  • 1. Run Tizen Update Manager.
  • 2. Select the All Packages tab.
  • 3. Expand Extras.
  • 4. Accept the License Agreement.
  • 5. Click the now enabled Install button.

TizenUM_CE

Create a new project / Import resources into your project
Create a new project

There are several ways to create a new project.  Here we illustrate how to create a Web application project using a template.

  • 1. Launch Tizen IDE
  • 2. Go to File > New > Tizen Web Project and select a Basic under WEARABLE-2.3.1

TizenIDE_new_project

  • 3. Set your project name.
  • 4. Click the Finish button to create the project.  It will show up under Project Explorer now.

TizenIDE_new_project_done

Import resources into your project

Sometimes you may wish to import existing resources (e.g. source code) into your project.   To begin, first follow all the steps outlined in creating a new project above.  Afterwards, follow the steps below.

  • 1. With your project selected in Project Explorer, go to File > Import, or right click the project in Project Explorer and select Import.

TizenIDE_import

  • 2. Select File System under General and click the Next button.
  • 3. Click the Browse button and navigate to the folder where resource files are stored.  Select this folder and click OK.
  • 4. Select the resources you would like to import.  Check the folder on the left if you wish to import everything.  Check the option Overwrite existing resources without warning if you don’t care what gets overwritten and want to speed up the process.  Click the Finish button.
TizenIDE_import2
Select resources to import
  • There you go!  Your project now contains the imported resources.
Connect your device to your PC

Here we describe how to connect your Tizen device with your PC.  We used a Samsung Gear S2 in this example.

  • 1. Restart your computer if you haven’t already after installing Tizen SDK.
  • 2. Enable debugging on the Gear S2 via Settings > Gear info > Debugging
  • 3. Disable the Bluetooth connection on the Gear S2 via Settings > Connections > Bluetooth
  • 4. Enable WiFi via Settings > Connections > Wi-Fi and connect your Gear S2 to the same network that the PC is connected to.
  • 5. Note the IP address of your Gear S2 by scrolling down via Settings > Connections > Wi-Fi > (Access Point)
  • 6. Launch Tizen IDE
  • 7. Under Connection Explorer, click on the Remote Device Manager button.

TizenIDE_Remote_connection

  • 8. Create a new device profile by clicking the New button.  Enter a name and the IP address noted from Step 5.  Click the Add button.
  • 9. Select the new device profile and click the Connect button.
TizenIDE_Remote_connection_done
Device profile
  • Your device should show up under the Connection Explorer like below.
TizenIDE_Remote_connected
Connected device in Connection Explorer
Register Certificate

To run your application on a consumer device you must register a certificate via the Certificate Extension.   After that, the device profile that is created needs to be copied onto the device.

  • 1. Launch Tizen IDE.
  • 2. From the toolbar, click the Register Certificate button.  This launches the Certificate Registration screen.

TizenIDE_RC_button

TizenIDE_RC_menu
Certificate registration screen
  • 3. In Step 1, select the device type for your project.
  • 4. In Step 2, click the New button to create a new Security Profile.  Enter a name for your new profile.
  • 5. In Step 3, click the Create new certificate button to request an author certificate.  Enter at least a name and password for your certificate.  You will be prompted to log in to your Samsung account.  Login or create a new account if you don’t already have one.  Click OK after you see the success popup window.
  • 6. In Step 4, click the Create new certificate button to request a distributor certificate.  Select the privilege level, password, and device unique ID (DUID) information and click Request.  Connected devices will be shown on the right and you can click the Add button to copy the DUID to the registration list.  Click OK after you see the success popup window.
TizenIDE_RC_distributor
Distributor certificate screen
  • 7. Click OK to register the author and distributor certificates.

TizenIDE_RC_done

  • 8. Right click on the device in Connection Explorer and select the option Permit to install applications.  Click OK on the success window popup.  This will copy the device profile that was generated in Step 7 onto the connected device, allowing you to install your applications to your device.
TizenIDE_Remote_permit
Copy the device profile
Running an application on your device

After connecting your device and registering your certificates, it’s pretty easy to install and run applications (provided there aren’t any errors in your project).

  • 1. Right click on your project in Project Explorer and select Run As > Tizen Web Application.  You should see the console window  updating as well as the progress bar to the bottom right of the IDE.

TizenIDE_running

TizenIDE_running2

 

That’s it!  You’re all set to start developing applications in Tizen IDE and run them on your device.

Leave a Reply