Book Image

Tizen Cookbook

By : Leon Anavi
Book Image

Tizen Cookbook

By: Leon Anavi

Overview of this book

Table of Contents (5 chapters)

In this chapter, we will cover:

The ecosystem and communities are essential for every open source project, and Tizen is no exception. Tizen is the OS of everything. It targets different devices, form factors, and CPU architectures, so it is a flexible software platform that can be used for multiple purposes.

Tizen can run on devices with ARM- or i586-compatible processors. The first commercially available Tizen device is the Samsung camera NX300. In 2014, Samsung also launched several smart watches with Tizen, and Intel manufactured the mini PC NUC. Please explore the last chapter of the book if you are interested in booting Tizen on various hardware devices or even building your own device.

Three types of installable applications are supported by Tizen:

This chapter contains information about the life cycle of Tizen applications, an overview of the development tools, and technologies as well as guides to publishing and selling applications through Tizen Store. It is an excellent getting started guide to publishing your first Tizen application.

The Tizen SDK provides tools to turn good ideas into excellent applications and to publish them to Tizen Store. The life cycle of Tizen applications is similar to the life cycle of mobile applications for Android and iOS, and it includes the steps described in the following section.

  1. Come up with a good idea.

    A good idea lies behind each great mobile application. All you need is inspiration, but unfortunately, as far as I know, there are no strict rules, standards, or algorithms, so you have to think out of the box.

  2. Design the application user interface (UI) and implement the backend.

    The user interface and the user experience are the key factors that convert a good idea into an exceptional application with a lot of downloads. Plan the development road map of the application carefully, and select the best approach for implementation. If your application communicates with a web service, wisely distribute the load between the mobile application and the server to achieve optimal performance. UML diagrams might help you to prepare well before you start coding. Always remember that a good plan can save you a lot of time during development.

  3. Build a Tizen application.

    The Tizen IDE provides the tools required for easy building of a Tizen application with a single click. Before you start the build, you have to configure its settings. Navigate to Project | Build Configuration to manage the available build settings. After that, you can build the application at any appropriate time by hitting F10 or navigating to Project | Build Project.

  4. Debug the Tizen application.

    Try out the application on a Tizen device and emulator to verify that it is working as expected. Testing is very important, because even a minor bug can irritate users, and they might stop using your application.

  5. Package the application.

    All files of the application have to be bundled into a package that can be installed on Tizen devices. The file extension of the package is .tpk for native applications and .wgt for web applications.

  6. Certify the application and publish it to Tizen Store.

    The final step is to release your app to the market. The easiest way to reach millions of users from around the world is to distribute your application through application stores, such as the official Tizen Store.

Tizen is open, and so is its ecosystem. Tizen Store is the official store that is maintained by Samsung, but you can publish your applications to other stores too. If you wish, you can even create your own store.

Getting ready

The life cycle of an application for Tizen can be divided into six major steps as shown in the following diagram:

Getting ready

Tizen application life cycle

The development of
  1. Come up with a good idea.

    A good idea lies behind each great mobile application. All you need is inspiration, but unfortunately, as far as I know, there are no strict rules, standards, or algorithms, so you have to think out of the box.

  2. Design the application user interface (UI) and implement the backend.

    The user interface and the user experience are the key factors that convert a good idea into an exceptional application with a lot of downloads. Plan the development road map of the application carefully, and select the best approach for implementation. If your application communicates with a web service, wisely distribute the load between the mobile application and the server to achieve optimal performance. UML diagrams might help you to prepare well before you start coding. Always remember that a good plan can save you a lot of time during development.

  3. Build a Tizen application.

    The Tizen IDE provides the tools required for easy building of a Tizen application with a single click. Before you start the build, you have to configure its settings. Navigate to Project | Build Configuration to manage the available build settings. After that, you can build the application at any appropriate time by hitting F10 or navigating to Project | Build Project.

  4. Debug the Tizen application.

    Try out the application on a Tizen device and emulator to verify that it is working as expected. Testing is very important, because even a minor bug can irritate users, and they might stop using your application.

  5. Package the application.

    All files of the application have to be bundled into a package that can be installed on Tizen devices. The file extension of the package is .tpk for native applications and .wgt for web applications.

  6. Certify the application and publish it to Tizen Store.

    The final step is to release your app to the market. The easiest way to reach millions of users from around the world is to distribute your application through application stores, such as the official Tizen Store.

Tizen is open, and so is its ecosystem. Tizen Store is the official store that is maintained by Samsung, but you can publish your applications to other stores too. If you wish, you can even create your own store.

How to do it...

Come up with a good idea.

A good idea lies behind each great mobile application. All you need is inspiration, but unfortunately, as far as I know, there are no strict rules, standards, or algorithms, so you have to think out of the box.

Design the application user interface (UI) and implement the backend.

The user interface and the user experience are the key factors that convert a good idea into an exceptional application with a lot of downloads. Plan the development road map of the application carefully, and select the best approach for implementation. If your application communicates with a web service, wisely distribute the load between the mobile application and the server to achieve optimal performance. UML diagrams might help you to prepare well before you start coding. Always remember that a good plan can save you a lot of time during development.

Build a Tizen application.

The Tizen IDE provides the tools required for easy building of a Tizen application with a single click. Before you start the build, you have to configure its settings. Navigate to Project | Build Configuration to manage the available build settings. After that, you can build the application at any appropriate time by hitting F10 or navigating to Project | Build Project.

Debug the See also

Tutorials and examples about

Web application development has been part of the Tizen project since its initial release. It is the recommended approach for application development on the platform. Millions of developers are already familiar with the basics of web development, so they can easily start developing applications for Tizen.

Tizen SDK provides all the tools necessary for development of Tizen web and hybrid applications. A web application contains HTML, CSS, and JavaScript files that are combined in a package with the extension .wgt. A hybrid application combines a web application with one or more native service applications.

  1. Launch the Tizen IDE, and if asked, choose a workspace.
  2. Navigate to File | New | Tizen Web Project.
  3. A wizard to create the project of the Tizen web application will appear. From Template select Tizen Web UI Framework and Single Page Application. Enter a project name, for example, hello. When you are ready, click on Finish.
  4. Navigate to config.xml from Project Explorer, and open it using Widget Configuration Editor. By default, a double-click should open the file in Widget Configuration Editor. If not, place the mouse over the file, click on the right button, and select this option from Open with.
  5. Open the Overview tab, and change the name to HelloWorld. This way, the name of the application will be different from the name of the project.
  6. From Project Explorer, open index.html, replace its content with the following source code, and save the changes:
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8"/>
        <meta name="description" content="Hello World!"/>
        <meta name="viewport" content="width=device-width,user-scalable=no"/>
        <title>Hello World!</title>
        <link rel="stylesheet" href="tizen-web-ui-fw/latest/themes/tizen-white/tizen-web-ui-fw-theme.css" name="tizen-theme"/>
        <script src="tizen-web-ui-fw/latest/js/jquery.js"></script>
        <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script>
        <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
            data-framework-theme="tizen-white"></script>
        <script type="text/javascript" src="./js/main.js"></script>
        <link rel="stylesheet" type="text/css" href="./css/style.css"/>
    </head>
    <body>
        <div data-role="page">
            <div data-role="header" data-position="fixed">
                <h1>Tizen Cookbook</h1>
            </div>
    
            <div data-role="content">
              <p>Hello World!</p>
            </div>
            <div data-role="footer" data-position="fixed">
                <h4>Packt Publishing</h4>
            </div>
        </div>
    </body>
    </html>
  7. Save all files.
  8. Make sure that a Tizen device with the developer mode enabled is connected or Emulator is running. If you are unsure how to enable the developer mode, have a look at the recipe Using Smart Development Bridge from the previous chapter.
  9. Select the project of the application from Project View, right-click on it, and from the menu that appears, navigate to Run as | Tizen Web Application. As an alternative, you can just hit the run button to deploy and launch the application.

Upon creating a new project, the Tizen IDE automatically generates the directory structure and creates files if a template is selected.

All configurations and permissions of the application are set at the XML file config.xml. The Tizen IDE provides means to simplify the editing process of the file. The name, the identifier, the version, the icon file, as well as the entry file, which is index.html by default, are among the configurations stored in config.xml. Access to sensitive APIs should also be set by describing privileges at this file if the application uses such sensitive APIs.

Several JavaScripts and CSSes are included using the following HTML code to make sure that the application is compatible with Tizen WRT and use the standard Tizen look and feel:

The file js/main.js will be generated by the IDE, and it will contain the JavaScript source code for initialization of the application and for the handling of the back hardware button. Pay attention to the fact that jQuery is also included because the Tizen Web UI framework is based on jQuery Mobile.

If you have any trouble creating a Hello World application from scratch, use the example provided with the book.

Getting ready

Web applications are installed and executed as standalone applications on Tizen, thanks to the
  1. Launch the Tizen IDE, and if asked, choose a workspace.
  2. Navigate to File | New | Tizen Web Project.
  3. A wizard to create the project of the Tizen web application will appear. From Template select Tizen Web UI Framework and Single Page Application. Enter a project name, for example, hello. When you are ready, click on Finish.
  4. Navigate to config.xml from Project Explorer, and open it using Widget Configuration Editor. By default, a double-click should open the file in Widget Configuration Editor. If not, place the mouse over the file, click on the right button, and select this option from Open with.
  5. Open the Overview tab, and change the name to HelloWorld. This way, the name of the application will be different from the name of the project.
  6. From Project Explorer, open index.html, replace its content with the following source code, and save the changes:
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8"/>
        <meta name="description" content="Hello World!"/>
        <meta name="viewport" content="width=device-width,user-scalable=no"/>
        <title>Hello World!</title>
        <link rel="stylesheet" href="tizen-web-ui-fw/latest/themes/tizen-white/tizen-web-ui-fw-theme.css" name="tizen-theme"/>
        <script src="tizen-web-ui-fw/latest/js/jquery.js"></script>
        <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script>
        <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
            data-framework-theme="tizen-white"></script>
        <script type="text/javascript" src="./js/main.js"></script>
        <link rel="stylesheet" type="text/css" href="./css/style.css"/>
    </head>
    <body>
        <div data-role="page">
            <div data-role="header" data-position="fixed">
                <h1>Tizen Cookbook</h1>
            </div>
    
            <div data-role="content">
              <p>Hello World!</p>
            </div>
            <div data-role="footer" data-position="fixed">
                <h4>Packt Publishing</h4>
            </div>
        </div>
    </body>
    </html>
  7. Save all files.
  8. Make sure that a Tizen device with the developer mode enabled is connected or Emulator is running. If you are unsure how to enable the developer mode, have a look at the recipe Using Smart Development Bridge from the previous chapter.
  9. Select the project of the application from Project View, right-click on it, and from the menu that appears, navigate to Run as | Tizen Web Application. As an alternative, you can just hit the run button to deploy and launch the application.

Upon creating a new project, the Tizen IDE automatically generates the directory structure and creates files if a template is selected.

All configurations and permissions of the application are set at the XML file config.xml. The Tizen IDE provides means to simplify the editing process of the file. The name, the identifier, the version, the icon file, as well as the entry file, which is index.html by default, are among the configurations stored in config.xml. Access to sensitive APIs should also be set by describing privileges at this file if the application uses such sensitive APIs.

Several JavaScripts and CSSes are included using the following HTML code to make sure that the application is compatible with Tizen WRT and use the standard Tizen look and feel:

The file js/main.js will be generated by the IDE, and it will contain the JavaScript source code for initialization of the application and for the handling of the back hardware button. Pay attention to the fact that jQuery is also included because the Tizen Web UI framework is based on jQuery Mobile.

If you have any trouble creating a Hello World application from scratch, use the example provided with the book.

How to do it...

Launch the Tizen IDE, and if asked, choose a workspace.
Navigate to File | New | Tizen Web Project.
A wizard to create the project of the Tizen web application will appear. From Template select Tizen Web UI Framework and Single Page Application. Enter a project name, for example, hello. When you are ready, click on Finish.
Navigate to config.xml from Project Explorer, and open it using Widget Configuration Editor. By default, a double-click should open the file in Widget Configuration Editor. If not, place the mouse over the file, click on the right button, and select this option from Open with.
Open the Overview tab, and change the name to HelloWorld. This way, the name of the
  1. application will be different from the name of the project.
  2. From Project Explorer, open index.html, replace its content with the following source code, and save the changes:
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8"/>
        <meta name="description" content="Hello World!"/>
        <meta name="viewport" content="width=device-width,user-scalable=no"/>
        <title>Hello World!</title>
        <link rel="stylesheet" href="tizen-web-ui-fw/latest/themes/tizen-white/tizen-web-ui-fw-theme.css" name="tizen-theme"/>
        <script src="tizen-web-ui-fw/latest/js/jquery.js"></script>
        <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script>
        <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
            data-framework-theme="tizen-white"></script>
        <script type="text/javascript" src="./js/main.js"></script>
        <link rel="stylesheet" type="text/css" href="./css/style.css"/>
    </head>
    <body>
        <div data-role="page">
            <div data-role="header" data-position="fixed">
                <h1>Tizen Cookbook</h1>
            </div>
    
            <div data-role="content">
              <p>Hello World!</p>
            </div>
            <div data-role="footer" data-position="fixed">
                <h4>Packt Publishing</h4>
            </div>
        </div>
    </body>
    </html>
  3. Save all files.
  4. Make sure that a Tizen device with the developer mode enabled is connected or Emulator is running. If you are unsure how to enable the developer mode, have a look at the recipe Using Smart Development Bridge from the previous chapter.
  5. Select the project of the application from Project View, right-click on it, and from the menu that appears, navigate to Run as | Tizen Web Application. As an alternative, you can just hit the run button to deploy and launch the application.

Upon creating a new project, the Tizen IDE automatically generates the directory structure and creates files if a template is selected.

All configurations and permissions of the application are set at the XML file config.xml. The Tizen IDE provides means to simplify the editing process of the file. The name, the identifier, the version, the icon file, as well as the entry file, which is index.html by default, are among the configurations stored in config.xml. Access to sensitive APIs should also be set by describing privileges at this file if the application uses such sensitive APIs.

Several JavaScripts and CSSes are included using the following HTML code to make sure that the application is compatible with Tizen WRT and use the standard Tizen look and feel:

The file js/main.js will be generated by the IDE, and it will contain the JavaScript source code for initialization of the application and for the handling of the back hardware button. Pay attention to the fact that jQuery is also included because the Tizen Web UI framework is based on jQuery Mobile.

If you have any trouble creating a Hello World application from scratch, use the example provided with the book.

How it works…

Upon creating a new project, the Tizen IDE automatically generates the directory structure and creates files if a template is selected.

All configurations and permissions of the application are set at the XML file config.xml. The Tizen IDE provides means to simplify the editing process of the file. The name, the identifier, the version, the icon file, as well as the entry file, which is index.html by default, are among the configurations stored in config.xml. Access to sensitive APIs should also be set by describing privileges at this file if the application uses such sensitive APIs.

Several JavaScripts and CSSes are included using the following HTML code to make sure that the application is compatible with Tizen WRT and use the standard Tizen look and feel:

<link rel="stylesheet" href="tizen-web-ui-fw/latest/themes/tizen-white/tizen-web-ui-fw-theme.css" name="tizen-theme"/> <script src="tizen-web-ui-fw/latest/js/jquery.js"></script> <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script> <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js" data-framework-theme="tizen-white"></script> <script type="text/javascript" src="./js/main.js"></script>

The file js/main.js will be generated by the IDE, and it will contain the JavaScript source code for initialization of the application and for the handling of the back hardware button. Pay attention to the fact that jQuery is also included because the Tizen Web UI framework is based on jQuery Mobile.

If you have any trouble creating a Hello World application from scratch, use the example provided with the book. See also

More examples and advanced tutorials related to web applications for Tizen are available in the chapters from the second part of the book.

Tizen provides a collection of APIs following the specification of W3C/HTML5 and the nonprofit industry consortium to create the open standards Khronos. A set of additional APIs that provide access to specific hardware and software capabilities of the devices are also provided. These APIs are based on JavaScript, and this programming language must be used to take advantage of the APIs.

The Tizen platform provides the following JavaScript-based APIs for development of web applications:

Launch the Tizen IDE and create a new project for Tizen web application, and append the privileges required for the API that you plan to use for config.xml, for example, http://tizen.org/privilege/alarm.

Take, for instance, the following JavaScript code, which demonstrates the simple usage of the Alarm and Application APIs:

// Get the ID of the current application
var sAppId = tizen.application.getCurrentApplication().appInfo.id;

// Set an alarm which will occur after couple of hours
var myAlarm = new tizen.AlarmRelative(2 * tizen.alarm.PERIOD_HOUR);
if (null != myAlarm) {
  tizen.alarm.add(myAlarm, sAppId);
}
Getting ready

The Tizen platform provides the following JavaScript-based APIs for development of web applications:

Alarm: This

Launch the Tizen IDE and create a new project for Tizen web application, and append the privileges required for the API that you plan to use for config.xml, for example, http://tizen.org/privilege/alarm.

Take, for instance, the following JavaScript code, which demonstrates the simple usage of the Alarm and Application APIs:

// Get the ID of the current application
var sAppId = tizen.application.getCurrentApplication().appInfo.id;

// Set an alarm which will occur after couple of hours
var myAlarm = new tizen.AlarmRelative(2 * tizen.alarm.PERIOD_HOUR);
if (null != myAlarm) {
  tizen.alarm.add(myAlarm, sAppId);
}
How to do it…

Launch the Tizen IDE and create a new project for Tizen web application, and append the privileges required for the API that you plan to use for config.xml, for example, How it works…

All additional device APIs that are used in web applications for Tizen are accessed through the tizen JavaScript object. A set of generic functions, including error handling and filters, is also provided with the tizen object.

The Application API See also

This chapter contains only a brief overview of the available APIs. Tutorials and examples for most of them are available in the chapters from the second part of the book.

Internationalization and localization of your applications to different languages is a key factor for success. Localized content attracts the attention of a larger audience, which leads to more downloads, and, of course, better revenues.

Internationalization is the process of designing the application in such a way that various languages are supported. Localization is another process of adding specific local resources to the application, such as text translated to different languages.

In this recipe, you will learn how to a support multiple languages inside the Tizen web application using a folder-based technique for localization.

How to do it...

Perform the following steps to localize a Tizen application:

Open the application's project, and select its root folder at Project View.
From the main menu of the Tizen IDE, navigate to Project | Localization | Localization Wizard... as shown in the following screenshot:
How to do it...

Launching Localization Wizard

On the first screen of
How it works…

Localization Wizard creates a folder called locales at the root level of the application package and creates separate folders in it for each selected locale. All files that have been chosen for localization of the selected locale will be included in its folder. For example, if we decide to create the French localization of index.html, then the folder /locales/fr will be created and the file will be copied in it.

If a file is not selected for localization, it will not appear in the locales folder, and its original version from the root level of the package will be automatically loaded.

When a web application is launched, Tizen will try to load the content using the current locale, which is configured by the user at the platform settings. If such a locale is not present, then the application will be loaded using its default localization. There's more...

In Tizen web applications, dynamic string localization using JavaScript is also possible, thanks to the open source library, Globalize. Perform the following steps to enable and use this library:

Define translation tables for each supported language. For example, the following code snippet defines the default language (English) and French:
Globalize.addCultureInfo("default", {
  messages: {
    "hello" : "Hello"
  }
});

Globalize.addCultureInfo("fr", {
  messages: {
    "hello" : "Bonjour"
  }
});
Use a translation string with automatic or manual language selection as follows:
console.log(Globalize.localize("hello"));
console.log(Globalize.localize("hello", "fr"));

Pay attention to the fact

After the successful development and testing of a web application, all of its files must be bundled together into a single file called package that has the extension .wgt. The package contains all the HTML, CSS, JavaScript, and any other resource files of the application. The .wgt file is used to install web applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

The package produced by the Tizen IDE is created according to W3C recommendations for web applications. For more information, visit http://www.w3.org/TR/widgets/.

The content of the package is compressed using the ZIP archive algorithms and its file must have the extension .wgt. Its MIME type is application/widget.

Several files and folders with reserved names shown in the following table have to be included inside the package of the Tizen web application. After successful installation, a directory, whose name matches the package ID, is created at /opt/usr/apps. The directory hierarchy also includes folders bin (for the application's binary files), data, and res.

Name

Description

config.xml

Web widget's configurations.

icon.gif

Several file types for icon are supported.

icon.ico

icon.jpg

icon.png

icon.svg

index.html

Several file types are supported for main entry page. By default the name is index.

index.htm

index.svg

index.xhtml

index.htt

locales

Directory that contains localization data.

Reserve directory and filenames for web applications

Web applications can be installed through SDB through the Tizen IDE or the command-line interface if the developer mode is enabled. Users can download the application from Tizen Store or other stores once it is published.

The package manager of the operating system on the device is responsible for the installation and the management of installed applications. To see the list of all installed applications, launch Settings and select Manage Applications. Click on the application to remove it or to stop it if it is running.

Since Tizen 2.0, it is possible to develop mobile applications using C/C++ programming languages. Although in most of the cases, web applications should be preferred and recommended, native programming is useful for faster performance, low-level access to device capabilities, compatibility with existing Bada applications, as well as third-party libraries and frameworks, such as Qt for Tizen. Native programming for Tizen supports both service applications and applications with GUI.

Follow these guidelines to create a simple Tizen native application:

Following this procedure, the Tizen IDE will automatically create the filesystem of the project as well as C++ and resource files.

The main class of a native Tizen mobile application must inherit the class Tizen::App::UiApp or the class Tizen::App::ServiceApp. Our example inherits Tizen::App::UiApp and overloads several methods including OnAppInitializing() and OnAppInitialized().

After the launch of a native application, OnAppInitializing() is the first method that is called. After that method, OnAppInitialized() is also called, and it creates the frame of our example application using the method AddFrame():

The nothrow statement is used as an argument of the new operator when helloWorldFrame is created to guarantee that an exception will not be thrown. Also note the L prefix of the hardcoded string of the name. It indicates that the text is a Unicode string.

While the application is running, each frame can be in one of the following three states: activated, deactivated, or minimized. Upon termination of the application, the method OnAppTerminating() gets called, and all resources must be released.

The modification of the header that had been done through Tizen Native UI Builder was saved as the XML file IDL_FORM.xml. The Native UI Builder simplifies the process, but the same effect will be achieved if the XML file is edited manually.

After the successful development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
Getting ready

The tools to build Tizen applications are integrated with the Tizen IDE. The building process is simple and it is fully automated. Please ensure that the Tizen SDK and IDE are properly installed before you proceed.

The package produced by the Tizen IDE is created according to W3C recommendations for web applications. For more information, visit http://www.w3.org/TR/widgets/.

The content of the package is compressed using the ZIP archive algorithms and its file must have the extension .wgt. Its MIME type is application/widget.

Several files and folders with reserved names shown in the following table have to be included inside the package of the Tizen web application. After successful installation, a directory, whose name matches the package ID, is created at /opt/usr/apps. The directory hierarchy also includes folders bin (for the application's binary files), data, and res.

Name

Description

config.xml

Web widget's configurations.

icon.gif

Several file types for icon are supported.

icon.ico

icon.jpg

icon.png

icon.svg

index.html

Several file types are supported for main entry page. By default the name is index.

index.htm

index.svg

index.xhtml

index.htt

locales

Directory that contains localization data.

Reserve directory and filenames for web applications

Web applications can be installed through SDB through the Tizen IDE or the command-line interface if the developer mode is enabled. Users can download the application from Tizen Store or other stores once it is published.

The package manager of the operating system on the device is responsible for the installation and the management of installed applications. To see the list of all installed applications, launch Settings and select Manage Applications. Click on the application to remove it or to stop it if it is running.

Since Tizen 2.0, it is possible to develop mobile applications using C/C++ programming languages. Although in most of the cases, web applications should be preferred and recommended, native programming is useful for faster performance, low-level access to device capabilities, compatibility with existing Bada applications, as well as third-party libraries and frameworks, such as Qt for Tizen. Native programming for Tizen supports both service applications and applications with GUI.

Follow these guidelines to create a simple Tizen native application:

Following this procedure, the Tizen IDE will automatically create the filesystem of the project as well as C++ and resource files.

The main class of a native Tizen mobile application must inherit the class Tizen::App::UiApp or the class Tizen::App::ServiceApp. Our example inherits Tizen::App::UiApp and overloads several methods including OnAppInitializing() and OnAppInitialized().

After the launch of a native application, OnAppInitializing() is the first method that is called. After that method, OnAppInitialized() is also called, and it creates the frame of our example application using the method AddFrame():

The nothrow statement is used as an argument of the new operator when helloWorldFrame is created to guarantee that an exception will not be thrown. Also note the L prefix of the hardcoded string of the name. It indicates that the text is a Unicode string.

While the application is running, each frame can be in one of the following three states: activated, deactivated, or minimized. Upon termination of the application, the method OnAppTerminating() gets called, and all resources must be released.

The modification of the header that had been done through Tizen Native UI Builder was saved as the XML file IDL_FORM.xml. The Native UI Builder simplifies the process, but the same effect will be achieved if the XML file is edited manually.

After the successful development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
How to do it...

Perform the described actions to build a Tizen web application from the Tizen IDE:

Launch the Tizen IDE, and navigate to the Project Explorer view. Select the project of the application.
Right-click on the project, and navigate to Project | Build Package.

The package produced by the Tizen IDE is created according to W3C recommendations for web applications. For more information, visit http://www.w3.org/TR/widgets/.

The content of the package is compressed using the ZIP archive algorithms and its file must have the extension .wgt. Its MIME type is application/widget.

Several files and folders with reserved names shown in the following table have to be included inside the package of the Tizen web application. After successful installation, a directory, whose name matches the package ID, is created at /opt/usr/apps. The directory hierarchy also includes folders bin (for the application's binary files), data, and res.

Name

Description

config.xml

Web widget's configurations.

icon.gif

Several file types for icon are supported.

icon.ico

icon.jpg

icon.png

icon.svg

index.html

Several file types are supported for main entry page. By default the name is index.

index.htm

index.svg

index.xhtml

index.htt

locales

Directory that contains localization data.

Reserve directory and filenames for web applications

Web applications can be installed through SDB through the Tizen IDE or the command-line interface if the developer mode is enabled. Users can download the application from Tizen Store or other stores once it is published.

The package manager of the operating system on the device is responsible for the installation and the management of installed applications. To see the list of all installed applications, launch Settings and select Manage Applications. Click on the application to remove it or to stop it if it is running.

Since Tizen 2.0, it is possible to develop mobile applications using C/C++ programming languages. Although in most of the cases, web applications should be preferred and recommended, native programming is useful for faster performance, low-level access to device capabilities, compatibility with existing Bada applications, as well as third-party libraries and frameworks, such as Qt for Tizen. Native programming for Tizen supports both service applications and applications with GUI.

Follow these guidelines to create a simple Tizen native application:

Following this procedure, the Tizen IDE will automatically create the filesystem of the project as well as C++ and resource files.

The main class of a native Tizen mobile application must inherit the class Tizen::App::UiApp or the class Tizen::App::ServiceApp. Our example inherits Tizen::App::UiApp and overloads several methods including OnAppInitializing() and OnAppInitialized().

After the launch of a native application, OnAppInitializing() is the first method that is called. After that method, OnAppInitialized() is also called, and it creates the frame of our example application using the method AddFrame():

The nothrow statement is used as an argument of the new operator when helloWorldFrame is created to guarantee that an exception will not be thrown. Also note the L prefix of the hardcoded string of the name. It indicates that the text is a Unicode string.

While the application is running, each frame can be in one of the following three states: activated, deactivated, or minimized. Upon termination of the application, the method OnAppTerminating() gets called, and all resources must be released.

The modification of the header that had been done through Tizen Native UI Builder was saved as the XML file IDL_FORM.xml. The Native UI Builder simplifies the process, but the same effect will be achieved if the XML file is edited manually.

After the successful development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
How it works…

The package produced by

the Tizen IDE is created according to W3C recommendations for web applications. For more information, visit http://www.w3.org/TR/widgets/.

The content of the package is compressed using the ZIP archive algorithms and its file must have the extension .wgt. Its MIME type is application/widget.

Several files and folders with reserved names shown in the following table have to be included inside the package of the Tizen web application. After successful installation, a directory, whose name matches the package ID, is created at /opt/usr/apps. The directory hierarchy also includes folders bin (for the application's binary files), data, and res.

Name

Description

config.xml

Web widget's configurations.

icon.gif

Several file types for icon are supported.

icon.ico

icon.jpg

icon.png

icon.svg

index.html

Several file types are supported for main entry page. By default the name is index.

index.htm

index.svg

index.xhtml

index.htt

locales

Directory that contains localization data.

Reserve directory and filenames for web applications

Web applications can be installed through SDB through the Tizen IDE or the command-line interface if the developer mode is enabled. Users can download the application from Tizen Store or other stores once it is published.

The package manager of the operating system on the device is responsible for the installation and the management of installed applications. To see the list of all installed applications, launch Settings and select Manage Applications. Click on the application to remove it or to stop it if it is running.

Since Tizen 2.0, it is possible to develop mobile applications using C/C++ programming languages. Although in most of the cases, web applications should be preferred and recommended, native programming is useful for faster performance, low-level access to device capabilities, compatibility with existing Bada applications, as well as third-party libraries and frameworks, such as Qt for Tizen. Native programming for Tizen supports both service applications and applications with GUI.

Follow these guidelines to create a simple Tizen native application:

Following this procedure, the Tizen IDE will automatically create the filesystem of the project as well as C++ and resource files.

The main class of a native Tizen mobile application must inherit the class Tizen::App::UiApp or the class Tizen::App::ServiceApp. Our example inherits Tizen::App::UiApp and overloads several methods including OnAppInitializing() and OnAppInitialized().

After the launch of a native application, OnAppInitializing() is the first method that is called. After that method, OnAppInitialized() is also called, and it creates the frame of our example application using the method AddFrame():

The nothrow statement is used as an argument of the new operator when helloWorldFrame is created to guarantee that an exception will not be thrown. Also note the L prefix of the hardcoded string of the name. It indicates that the text is a Unicode string.

While the application is running, each frame can be in one of the following three states: activated, deactivated, or minimized. Upon termination of the application, the method OnAppTerminating() gets called, and all resources must be released.

The modification of the header that had been done through Tizen Native UI Builder was saved as the XML file IDL_FORM.xml. The Native UI Builder simplifies the process, but the same effect will be achieved if the XML file is edited manually.

After the successful development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
See also

Check the recipe Tizen native app programming to learn how to create multiproject applications and how to bundle hybrid applications.

Since Tizen 2.0, it is possible to develop mobile applications using C/C++ programming languages. Although in most of the cases, web applications should be preferred and recommended, native programming is useful for faster performance, low-level access to device capabilities, compatibility with existing Bada applications, as well as third-party libraries and frameworks, such as Qt for Tizen. Native programming for Tizen supports both service applications and applications with GUI.

Follow these guidelines to create a simple Tizen native application:

Following this procedure, the Tizen IDE will automatically create the filesystem of the project as well as C++ and resource files.

The main class of a native Tizen mobile application must inherit the class Tizen::App::UiApp or the class Tizen::App::ServiceApp. Our example inherits Tizen::App::UiApp and overloads several methods including OnAppInitializing() and OnAppInitialized().

After the launch of a native application, OnAppInitializing() is the first method that is called. After that method, OnAppInitialized() is also called, and it creates the frame of our example application using the method AddFrame():

The nothrow statement is used as an argument of the new operator when helloWorldFrame is created to guarantee that an exception will not be thrown. Also note the L prefix of the hardcoded string of the name. It indicates that the text is a Unicode string.

While the application is running, each frame can be in one of the following three states: activated, deactivated, or minimized. Upon termination of the application, the method OnAppTerminating() gets called, and all resources must be released.

The modification of the header that had been done through Tizen Native UI Builder was saved as the XML file IDL_FORM.xml. The Native UI Builder simplifies the process, but the same effect will be achieved if the XML file is edited manually.

After the successful development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
Tizen native app programming

Since Tizen 2.0, it is

possible to develop mobile applications using C/C++ programming languages. Although in most of the cases, web applications should be preferred and recommended, native programming is useful for faster performance, low-level access to device capabilities, compatibility with existing Bada applications, as well as third-party libraries and frameworks, such as Qt for Tizen. Native programming for Tizen supports both service applications and applications with GUI.

Follow these guidelines to create a simple Tizen native application:

Following this procedure, the Tizen IDE will automatically create the filesystem of the project as well as C++ and resource files.

The main class of a native Tizen mobile application must inherit the class Tizen::App::UiApp or the class Tizen::App::ServiceApp. Our example inherits Tizen::App::UiApp and overloads several methods including OnAppInitializing() and OnAppInitialized().

After the launch of a native application, OnAppInitializing() is the first method that is called. After that method, OnAppInitialized() is also called, and it creates the frame of our example application using the method AddFrame():

The nothrow statement is used as an argument of the new operator when helloWorldFrame is created to guarantee that an exception will not be thrown. Also note the L prefix of the hardcoded string of the name. It indicates that the text is a Unicode string.

While the application is running, each frame can be in one of the following three states: activated, deactivated, or minimized. Upon termination of the application, the method OnAppTerminating() gets called, and all resources must be released.

The modification of the header that had been done through Tizen Native UI Builder was saved as the XML file IDL_FORM.xml. The Native UI Builder simplifies the process, but the same effect will be achieved if the XML file is edited manually.

After the successful development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
Getting ready

The native development framework for Tizen is quite complex. The most significant differences from the standard C++ are the exception handling mechanism and the two-phase constructors. Although Tizen does not use C++ exceptions, you can use try-catch statements for your own application's C++ exceptions.

Tizen native applications for mobile devices are based on the graphics stack of Bada, which is known as a native framework or

OSP (Open Service Platform). During the port of existing Bada C++ applications, the OSP namespace should be renamed to Tizen. This porting process can easily be done through the Tizen IDE. The full list of available namespaces in the Tizen native framework is available at https://developer.tizen.org/dev-guide/2.2.1/org.tizen.native.apireference/namespaces.html.

Furthermore, Tizen native frameworks contain hidden gems, such as the specific life cycle of native applications and the macros used for logging.

Please explore in detail the native development documentation if you plan to develop sophisticated Tizen native mobile applications.

Follow these guidelines to create a simple Tizen native application:

Following this procedure, the Tizen IDE will automatically create the filesystem of the project as well as C++ and resource files.

The main class of a native Tizen mobile application must inherit the class Tizen::App::UiApp or the class Tizen::App::ServiceApp. Our example inherits Tizen::App::UiApp and overloads several methods including OnAppInitializing() and OnAppInitialized().

After the launch of a native application, OnAppInitializing() is the first method that is called. After that method, OnAppInitialized() is also called, and it creates the frame of our example application using the method AddFrame():

The nothrow statement is used as an argument of the new operator when helloWorldFrame is created to guarantee that an exception will not be thrown. Also note the L prefix of the hardcoded string of the name. It indicates that the text is a Unicode string.

While the application is running, each frame can be in one of the following three states: activated, deactivated, or minimized. Upon termination of the application, the method OnAppTerminating() gets called, and all resources must be released.

The modification of the header that had been done through Tizen Native UI Builder was saved as the XML file IDL_FORM.xml. The Native UI Builder simplifies the process, but the same effect will be achieved if the XML file is edited manually.

After the successful development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
How to do it...

Follow these guidelines to create

a simple Tizen native application:

Following this procedure, the Tizen IDE will automatically create the filesystem of the project as well as C++ and resource files.

The main class of a native Tizen mobile application must inherit the class Tizen::App::UiApp or the class Tizen::App::ServiceApp. Our example inherits Tizen::App::UiApp and overloads several methods including OnAppInitializing() and OnAppInitialized().

After the launch of a native application, OnAppInitializing() is the first method that is called. After that method, OnAppInitialized() is also called, and it creates the frame of our example application using the method AddFrame():

The nothrow statement is used as an argument of the new operator when helloWorldFrame is created to guarantee that an exception will not be thrown. Also note the L prefix of the hardcoded string of the name. It indicates that the text is a Unicode string.

While the application is running, each frame can be in one of the following three states: activated, deactivated, or minimized. Upon termination of the application, the method OnAppTerminating() gets called, and all resources must be released.

The modification of the header that had been done through Tizen Native UI Builder was saved as the XML file IDL_FORM.xml. The Native UI Builder simplifies the process, but the same effect will be achieved if the XML file is edited manually.

After the successful development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
How it works

Following this procedure, the Tizen IDE will automatically create the filesystem of the project as well as C++ and resource files.

The main class of a native Tizen mobile application must inherit the class Tizen::App::UiApp or the class Tizen::App::ServiceApp. Our example inherits Tizen::App::UiApp and overloads several methods including OnAppInitializing() and OnAppInitialized().

After the launch of a

After the successful development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
See also

To find out details about native application development and C++ API references, please have a look at the sample native

After the successful development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
Packaging Tizen native apps

After the successful

development and testing of a native application, all of its files must be bundled together into a single installation file, whose extension is .tpk. This file is called package. It sounds similar to the Android application package file (APK), and it has the same purpose. The .tpk file is used to install native applications on Tizen devices and should be uploaded to Tizen Store when the application is published.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
Getting ready

Native mobile applications that consist of several projects are also supported by Tizen. This type of application combines a GUI project with one or more projects of service applications that do not have a GUI.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
How to do it...

Perform the following steps to create a package of a Tizen native mobile application from a single project.

Locate the project of the application at the Project Explorer of Tizen IDE, and select it.
Click on the project, and from the context menu, choose Project > Build Package > TPK.
Finally, click on OK.

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
How it works...

Both the packages, Tizen native mobile and Tizen web applications, are compressed with the ZIP algorithms. Unlike the web application, the extension of the native mobile application is .tpk. The MIME type of the package is application/x-tizen.package-archive. The content of the package is spread among the following directories, whose names are reserved:

Directory Name

Description

bin

Application's binaries

data

Private data

info

Metadata (including manifest.xml)

lib

Libraries

res

Resources

settings

Settings

shared

Shared resources

Reserved directories of a native mobile application

The

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
Becoming a Tizen Store seller

Tizen Store is the official and the first application marketplace for the Tizen platform. You can register and publish your applications at Tizen Store to reach users and increase your review.

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
Getting ready

Registering with

To register as a Tizen Store seller, you should perform the following simple actions:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Sign Up Now.
  3. If you are an independent developer, select Register as a Private Seller. If you are representing a company, select Register as a Corporate Seller.
  4. Follow the onscreen instructions (four steps), and provide the required information to complete the registration successfully.
  5. To publish paid applications, you should obtain commercial status. Click on the Request Commercial Seller Status button on the last step of the registration, or log in and go to your profile page.

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
How to do it...

To register as a Tizen Store seller, you should perform the following simple actions:

Launch your favorite web browser, and go to

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
How it works...

Tizen Store is operated by Samsung. The registration is free. After registration, the seller must request commercial status to be able to offer paid applications.

The revenue from paid applications is split as 30 percent for Samsung and 70 percent for the seller. By the way, this is an industry-standard revenue split, because the same shares are reserved for the publishers at many application stores for other operating systems.

Payments to the sellers are

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
See also

Refer to the next recipe to learn how to publish applications to Tizen Store. Check the Tizen Store terms and conditions

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
Publishing apps to Tizen Store

After development, testing, and packaging of an application, it is time to launch it on the market. Register to Tizen Store, and publish your web or native application as free or paid content.

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
Getting ready

Before you start, it is

Upload and publish your Tizen application to Tizen Store in five simple steps:

  1. Launch your favorite web browser, and go to http://seller.tizenstore.com.
  2. Click on Add New App.
  3. Fill in the basic information, upload the application's package, and after that, click on Next to proceed.
  4. On the Display Information screen, fill the description, add tags, and so on. When you are ready, click on Next.
  5. Verify the information that you have entered on the Final Review screen, and if everything is OK, click on Confirm.
How to do it...

Upload and publish your Tizen application to Tizen Store in five simple steps:

Launch your favorite web browser, and go to How it works...

The application See also

For details regarding the application submission process, please log in to the website for Tizen Store sellers, and access the user's manuals by clicking on the Guides button.