Dev TipsSubscribe to RSS - Dev Tips

Creating Web Multiplayer Game with WiFi Direct

Introduction

Tizen Platform doesn’t support WiFi Direct Web API yet, however its implementation should appear soon. For now there are few ways of creating web application using WiFi Direct. One of those solutions I’m going to describe in this article. We’ve created WiFi Direct library for web environment that uses hybrid application to provide Web API that developer can use and invoke some native functions. Using this library I’ve created multiplayer game called TypeRace, which process of creation is going to be described in details in this article.

Using download API

Introduction

Tizen allows you to download files from the Internet (by given URL) using the Download API. It can be handy when creating download manager applications or applications that need to download extra content from the server. Download API gives you the possibility to monitor download progress and status.

Managing downloads

To download file we have to create request first. You can do it by creating object with tizen.DownloadRequest constructor, which takes URL as the first argument.

Validation Guidelines


1 Tizen Validation Guide

Validation Team investigates application based on Tizen validation guide. If application contains any content which is not in accord with Tizen validation guide, it would be failed. If defects are detected after being approved from validation, validation team can suspend application from the Tizen store without seller consent. 

IvanK library introduction

This article describes an IvanK JavaScript library and how to work with it on Tizen.

Introduction

IvanK Lib is an open source JavaScript graphics library. It is small, simple and very light. It renders graphics using WebGL and runs in browsers with WebGL support (also on mobile devices).

To use the IvanK Lib in your Tizen Web application: 

or 

Flexible Layouts in Web Applications

Introduction

When creating mobile application, you have to decide if you want to support different screen orientations or just display application in one orientation (portrait by default). When you hold your device horizontally (landscape orientation) the viewport’s width is a longer edge. When you hold your device vertically (portrait orientation) the viewport’s width is a shorter edge. Moreover, we can hold device in portrait/landscape primary or secondary orientation. The difference is shown in the picture below.

Developing Tizen Web Applications with Google Web Toolkit (GWT)

About This Document

This article explains how to use the Google Web Toolkit (refered later as GWT) to develop Tizen web applications. It focuses mainly on work environment tasks such as compiling an app with GWT, packaging it as a Tizen web app .wgt file and installing it on the Tizen emulator or device. This article is not a GWT programming tutorial. It comes however with a sample application to show you a working example. The sample application is not deeply discussed. Only less obvious parts and not typical GWT constructs are explained.

Asynchronous JavaScript Loader

Introduction

Asynchronous JavaScript loading provides a mechanism to load JavaScript files asynchronously. It helps in improving the performance of the web applications / browser. In addition to this, it also provides a way to encapsulate JavaScript files in many different files, similar to Java where keywords like import, package and class are used for this purpose. Using the traditional synchronous method of loading the files may affect the performance and usability of the applications that have more dependencies (load multiple JavaScript files at runtime).