May 18, 2015 - Ben Lloyd Pearson

Get Started With Tizen Development On Linux Mint 17

Tizen is a great platform to develop apps for if you are someone who comes from a web development background. The ability to write apps for wearable devices and smartphones using nothing more than HTML/CSS and JavaScript makes building simple applications a breeze. Tizen extends the functionality of these languages by giving them access to all of the sensors found in many wearable devices and smartphones, which allows developers to build unique apps using simple languages.

This guide is tested on Linux Mint 17, and most of it should also work for Ubuntu.

Note: Any red text in this guide might be different based on your own configurations or the software versions you download.

Prerequisites

You will need to download two things before you start.

Both applications have a 32 bit and 64 bit version, so choose whichever one is correct for you. If you don’t know whether you have a 32-bit or 64- bit processor, run ‘lscpu’ from any terminal window and take a look at the first line, which is labeled Architecture. Anything similar to X86_64 , amd64 , and X64 is 64-bit, anything like X86 , i686 , and i386 is 32-bit.

Install Oracle JDK

The Tizen development kit requires Oracle JDK, but Linux Mint comes with OpenJDK by default. You will need to remove OpenJDK and install Oracle JDK. This is a relatively simple and straightforward process.

  1. Open a terminal window.(Ctrl + Alt + T)
  2. Remove OpenJDK
  3. Change to the directory you downloaded Oracle JDK to.
  4. Extract the tarball.
  5. As super user, make a directory to store the Oracle JDK.
  6. Move the extracted folder to the newly created directory.
  7. Make the Oracle JDK the system default
  8. Check the installed version of Java.


Install the Tizen SDK

There is a single missing dependency that needs to be installed in Mint before running the Tizen SDK installer.

Change to the directory that contains the Tizen SDK installer, make the bin file executable, and run it.

Once the installer has been launched, click install, and then choose whether or not you want to install the mobile or wearable profiles. I will be developing for Tizen smart watches, so I chose wearable, but if you want to make phone apps, choose mobile. You can always download a different profile later if you might want to use both. Finally, accept the license agreement and click install. The installer will need to download the SDK, which is quite large, so it will take a while to complete.

Setup A Test Device

If you are going to be building apps, you will need to test them out on something. Fortunately, the Tizen SDK includes an emulator manager that allows you to create and launch virtual machines for testing purposes. The easiest way to access it is by opening the Mint launch menu, search for “Tizen” and launch the Emulator Manager.

 

emulator manager launcher

Tizen SDK Applications

 

The Emulator Manager allows you to quickly setup VM’s with customized hardware settings and test a wide range of events and sensors. I personally have a Samsung Gear 2 Neo, so I created an emulator that matches the specs of my watch. Once you have created the emulator, launch it and take a look at the control panel for the device by right clicking on it and choosing Control Panel. This lets you test out sensors and events such as the heart rate monitor, battery levels, the accelerometer, location, and more.

 

The Tizen Emulator Control Panel

The Tizen Emulator Control Panel

Get Familiar with the Development Environment

The Tizen SDK comes packaged with a customized version of Eclipse which can be used to write the code for the apps and push apps to the emulator. It is named Tizen IDE, and can be found through the Mint launch menu.

EclipseIDE

Tizen Eclipse IDE

If you are unfamiliar with Eclipse, there are three main areas in the the UI that you will be using extensively.

  • The Project Explorer in the top left contains all of your projects and their associated files and folders. When you create new Tizen Web Applications, they will appear here.
  • The Connection Explorer contains all of the emulators you have available to test your code on. You can use it to push and pull applications to the device or explore the file structure of the device.
  • The main work area is where all of the html, css, and JavaScript documents you work on will appear. Though, if you are like me, you will probably be using your own preferred code editor, so this area might not be used.

Check Out What Tizen Can Do

The first thing you will probably want to do is explore some of the sample apps that come loaded with the Tizen SDK. You can find these by going to File > New > Tizen Web Project. In the new window, choose Sample from the top bar and take a look at the Web Apps listed under the profiles you have installed. There are a handful of samples that demonstrate how things are built in Tizen including a clock widget (the clock used for the watch’s main screen), examples of canvas, camera, and recording functionalities, and a WearableWidgets project that contains dozens of UI examples you can reuse in your own app.

TizenSampleApps

Tizen Sample Apps

 

When you have chosen a sample project you want to check out, give it a name, and click finish. It will appear in the project explorer and you can run it on your emulator by clicking on the small blue and white arrow in the Eclipse menu bar, or by right clicking on the folder in the project explorer and going to Run As > Tizen Web Application. It will take a few seconds to build and push the app to the device, but it will eventually appear on your emulator.

Onward!

From here you will probably want to poke around in the code for the sample apps to see how everything works. Tizen apps are structured much like traditional websites with separate folders that each contain index.html files for internal structure, in addition to all of your CSS and JavaScript files.The wiki has a ton of links to resources to help learn about Tizen mechanics and design principles, as well as many other resources to learn about general web development as it relates to building apps for Tizen.

Stay tuned to this blog for more tutorials on building things with Tizen!

Ben Lloyd Pearson

About Ben Lloyd Pearson

Ben handles Open Source Operations for the Samsung Open Source Group. He has a background that spans many areas of technology including digital media, audio / video production, web development, IT systems support / administration, and technical writing. In addition to his work for Samsung, he also runs Open Source Today, a news blog that covers developments in the open source industry. He lives in Austin, Texas, a place he and his wife chose to live in order to experience one of the best scenes for food, music, and technology in the world. He is a musician, aspiring amateur chef, DIY mechanic, and avid gamer.

Development / Tizen Linux Development Environment / Tutorial /

Comments

Leave a Reply to [Developer] Get Started With Tizen Development On Linux Mint 17 - Tizen Experts Cancel reply

Your email address will not be published. Required fields are marked *

Comments Protected by WP-SpamShield Anti-Spam