You are previewing Tizen Cookbook.
O'Reilly logo
Tizen Cookbook

Book Description

Over 100 hands-on recipes to develop, deploy, and debug applications using the exciting Tizen platform

In Detail

Tizen is an open-source Linux-based software platform for a variety of devices, from smartphones and watches to in-vehicle infotainment. Application development is based on open standards and HTML5 is the primary development technology. The Tizen project creates new business opportunities for mobile and embedded applications as it is supported by a Technical Steering Group (TSG) composed of Samsung and Intel. Samsung has recently announced a shift from Android to Tizen, and Tizen-based applications will soon be known as path breakers.

Starting with a detailed description of using the Tizen SDK, you will delve into Tizen development on Linux, Windows, and MacOS with this book. You will learn to use the Tizen IDE and move on to use the Web and Device emulator that will help you get started with this magnificent platform.

It is important to note that Tizen is much more than just a mobile platform; you will discover its rich and varied ecosystem and learn how to post your application on the Tizen Store.

A successful application needs to have an impressive UI and you will learn how to draw 2D and 3D objects on HTML5 Canvas with Tizen followed by a detailed tutorial on how data can be stored in file, local storage, and on web SQL databases.

You will then stride ahead to create stunning multimedia application programs rich with audio, video, image capturing, and other features. Tizen is perfect for web application development and you will learn this by building social media apps for Facebook, Twitter, and LinkedIn. Moving ahead you will get a glimpse into task management with Tizen and will learn to utilize the Address Book and Calendar.

You will next gain an understanding of Tizen’s communication capabilities, exploring how SMS, Bluetooth, and Near Field Communication(NFC) work with Tizen. You will then learn about navigation sensors like GPS, thus enabling you develop high-end mobile apps with a vast range of utilities.

Finally you will learn precisely how the applications you've created can be debugged. Tizen has an innate ability to run existing apps from other platforms like Android and you will take a closer look at this in the subsequent chapters.

The recipes in this book are invaluable in helping you explore and optimize the exceptionally capable and cool Tizen Project platform to develop breathtaking mobile and web applications.

What You Will Learn

  • Set up the Tizen SDK on Linux, Windows, and Mac OS X
  • Create Tizen web applications using the Tizen UI Framework
  • Use social media APIs to develop Facebook, Twitter, and LinkedIn applications for Tizen
  • Explore the Tizen ecosystem and learn how to deliver your applications to the market
  • Discover how to send and receive text messages and e-mails as well as how to transfer data over Bluetooth and NFC
  • Delve into the Tizen web APIs to manage the address book, calendar, and alarms
  • Retrieve data from device sensors such as the GPS, the accelerometer, and the gyroscope sensor
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Tizen Cookbook
      1. Table of Contents
      2. Tizen Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
          1. Part 1 – Getting Started with Tizen
          2. Part 2 – Creating Tizen Web Applications
          3. Part 3 – Porting and Debugging
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. I. Getting Started with Tizen
        1. 1. The Tizen SDK
          1. Introduction
          2. Installing the Tizen SDK
            1. Getting ready
            2. How to do it...
            3. How it works…
            4. See also
          3. Installing the Tizen SDK on Windows
            1. Getting ready
            2. How to do it...
            3. See also
          4. Installing the Tizen SDK on Mac OS
            1. Getting ready
            2. How to do it...
            3. See also
          5. Installing the Tizen SDK on Ubuntu
            1. Getting ready
            2. How to do it...
            3. There's more…
            4. See also
          6. Managing extension packages
            1. How to do it...
            2. How it works…
          7. Customizing the Tizen IDE
            1. Getting ready
            2. How to do it...
            3. There's more...
          8. Setting the Active Secure profile
            1. Getting ready
            2. How to do it...
            3. How it works…
          9. Tizen Web Simulator
            1. Getting ready
            2. How to do it...
            3. How it works…
            4. See also
          10. Tizen Emulator
            1. Getting ready
            2. How to do it...
            3. See also
          11. Getting started with Smart Development Bridge
            1. Getting ready
            2. How to do it...
            3. See also
          12. Using Smart Development Bridge
            1. How to do it...
            2. See also
        2. 2. Introduction to the Tizen Ecosystem
          1. Introduction
          2. The Tizen app life cycle
            1. Getting ready
            2. How to do it...
            3. See also
          3. Tizen web app programming
            1. Getting ready
            2. How to do it...
            3. How it works…
            4. See also
          4. Tizen web APIs
            1. Getting ready
            2. How to do it…
            3. How it works…
            4. See also
          5. Localizing Tizen web apps
            1. How to do it...
            2. How it works…
            3. There's more...
          6. Packaging Tizen web apps
            1. Getting ready
            2. How to do it...
            3. How it works…
              1. See also
            4. Tizen native app programming
              1. Getting ready
              2. How to do it...
              3. How it works
              4. See also
            5. Packaging Tizen native apps
              1. Getting ready
              2. How to do it...
              3. How it works...
              4. Becoming a Tizen Store seller
                1. Getting ready
                2. How to do it...
                3. How it works...
                4. See also
              5. Publishing apps to Tizen Store
                1. Getting ready
                2. How to do it...
                3. How it works...
                4. See also
      9. II. Creating Tizen Web Applications
        1. 3. Building a UI
          1. Introduction
          2. An overview of widgets
            1. Getting ready
            2. How to do it...
            3. How it works…
            4. See also
          3. Creating buttons
            1. Getting ready
            2. How to do it...
            3. How it works…
            4. See also
          4. Creating list views
            1. Getting ready
            2. How to do it...
            3. How it works…
            4. See also
          5. Showing pop ups
            1. How to do it...
            2. How it works…
            3. See also
          6. Using the Tizen Notification API
            1. Getting ready
            2. How to do it...
            3. How it works…
            4. See also
          7. Customizing the look and feel
            1. Getting ready
            2. How to do it...
            3. How it works…
            4. See also
          8. Drawing and writing text on a canvas
            1. Getting ready
            2. How to do it...
            3. How it works…
            4. See also
          9. Creating 3D objects with WebGL
            1. Getting ready
            2. How to do it...
            3. How it works…
            4. See also
        2. 4. Storing Data
          1. Introduction
          2. Writing files
            1. Getting ready
            2. How to do it...
            3. How it works...
          3. Reading files
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          4. Creating a simple text editor
            1. How to do it...
            2. How it works...
            3. See also
          5. Downloading files
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          6. Using web storage
            1. How to do it...
            2. How it works...
          7. Creating Web SQL Database
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          8. Executing queries in Web SQL Database
            1. How to do it...
            2. How it works...
            3. See also
          9. Retrieving data from Web SQL Database
            1. How to do it...
            2. How it works...
            3. See also
          10. Using IndexedDB
            1. How to do it...
            2. How it works...
            3. See also
        3. 5. Creating Multimedia Apps
          1. Introduction
          2. Playing local audio files
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          3. Playing local video files
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          4. Launching video in an external player
            1. Getting ready
            2. How to do it...
            3. How it works
            4. There's more...
            5. See also
          5. Taking a photo
            1. How to do it...
            2. How it works
            3. There's more...
            4. See also
          6. Generating linear barcodes
            1. How to do it...
            2. How it works
            3. There's more...
            4. See also
          7. Scanning linear barcodes
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          8. Generating QR codes
            1. Getting ready
            2. How to do it...
            3. How it works
            4. There's more...
            5. See also
          9. Scanning QR codes
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
        4. 6. Developing Social Networking Apps
          1. Introduction
          2. Developing Facebook apps in Tizen
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          3. Fetching a Facebook news feed
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          4. Obtaining Facebook friends list
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          5. Accessing Facebook profile information
            1. How to do it...
            2. How it works
            3. See also
          6. Reading Facebook messages
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          7. Retrieving Facebook notifications
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          8. Updating a Facebook status
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          9. Filtering a Tizen news feed from Twitter
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          10. Developing a LinkedIn app in Tizen
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          11. Retrieving LinkedIn updates
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
        5. 7. Managing the Address Book and Calendar
          1. Introduction
          2. Retrieving all contacts
            1. How to do it...
            2. How it works
            3. See also
          3. Adding a new contact
            1. Getting ready
            2. How to do it...
            3. How it works
            4. There's more
            5. See also
          4. Deleting a contact
            1. Getting ready
            2. How to do it...
            3. How it works
            4. There's more
            5. See also
          5. Exporting a contact to vCard
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          6. Retrieving all tasks
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          7. Creating a new task
            1. How to do it...
            2. How it works
            3. There's more...
            4. See also
          8. Deleting a task
            1. How to do it...
            2. How it works
            3. See also
          9. Creating a new event
            1. Getting ready
            2. How to do it...
            3. See also
          10. Deleting an event
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          11. Retrieving all events
            1. How to do it...
            2. How it works
            3. See also
          12. Setting an alarm
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
        6. 8. Communication
          1. Introduction
          2. Sending SMS messages
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          3. Sending e-mail messages
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          4. Receiving and displaying e-mail messages
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. There's more...
            5. See also
          5. Browsing call history
            1. How to do it...
            2. How it works...
            3. There's more...
            4. See also
          6. Using Bluetooth
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          7. Using NFC and detecting other devices
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. There's more...
            5. See also
          8. Sending NDEF messages
            1. Getting ready
            2. How to do it...
            3. See also
          9. Receiving NDEF messages
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          10. Receiving push notifications
            1. Getting ready
            2. How to do it...
            3. How it works
            4. There's more...
            5. See also
        7. 9. Using Sensors
          1. Introduction
          2. Using location-based services to display current location
            1. Getting ready
            2. How to do it...
            3. How it works
            4. There's more...
            5. See also
          3. Getting directions
            1. Getting ready
            2. How to do it...
            3. How it works
            4. There's more...
            5. See also
          4. Geocoding
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          5. Reverse geocoding
            1. Getting ready
            2. How to do it...
            3. How it works
            4. There's more...
            5. See also
          6. Calculating distance
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          7. Detecting device motion
            1. How to do it...
            2. How it works
            3. See also
          8. Detecting device orientation
            1. How to do it...
            2. How it works
            3. There's more...
            4. See also
          9. Using the Vibration API
            1. How to do it...
            2. How it works
            3. There's more...
            4. See also
      10. III. Porting and Debugging
        1. 10. Porting Apps to Tizen
          1. Introduction
          2. Porting web apps
            1. Getting ready
            2. How to do it...
            3. See also
          3. Installing the PhoneGap or Cordova SDK
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          4. Creating Tizen web applications with PhoneGap or Cordova
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          5. Deploying Cordova and PhoneGap applications to the Tizen device or Emulator
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          6. Bringing Android apps to Tizen
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          7. Porting an Android UI to Tizen UI Framework
            1. How to do it...
            2. How it works
            3. See also
          8. Setting Qt for Tizen
            1. Getting ready
            2. How to do it...
            3. There's more...
            4. See also
          9. Deploying Qt applications on Tizen
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
        2. 11. Debugging Apps in Tizen
          1. Introduction
          2. Running an application in Tizen Web Simulator
            1. Getting ready
            2. How to do it...
            3. There's more
            4. See also
          3. Running an application in Tizen Emulator
            1. How to do it...
            2. See also
          4. Running an application on a device
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          5. Debugging in Tizen Web Simulator
            1. How to do it...
            2. How it works
            3. See also
          6. Debugging in Tizen Emulator
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          7. Debugging on a device
            1. Getting ready
            2. How to do it…
            3. There's more
            4. See also
          8. Using Samsung Remote Test Lab
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          9. Tracking JavaScript bugs
            1. How to do it...
            2. How it works
            3. See also
          10. Unit testing with QUnit
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
        3. 12. Porting Tizen to Hardware Devices
          1. Introduction
          2. Setting up a platform development environment
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          3. Installing development tools in Ubuntu or Debian
            1. How to do it...
            2. How it works
            3. There's more...
            4. See also
          4. Installing development tools in openSUSE
            1. How to do it...
            2. How it works
            3. There's more...
            4. See also
          5. Installing development tools in Fedora and CentOS
            1. How to do it...
            2. How it works
            3. There's more...
            4. See also
          6. Building Tizen platform images
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          7. Flashing a Tizen image to mobile devices
            1. Getting ready
            2. How to do it...
            3. There's more...
            4. See also
          8. Enabling 3D acceleration and OpenGL
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          9. Booting Tizen on Intel NUC
            1. Getting ready
            2. How to do it...
            3. How it works
            4. There's more...
            5. See also
          10. Booting Tizen on Allwinner devices
            1. Getting ready
            2. How to do it...
            3. How it works
            4. See also
          11. Hacking a tablet and booting Tizen on it
            1. Getting ready
            2. How to do it...
            3. How it works
            4. There's more...
            5. See also
      11. Index