Tizen DotNet in Xamarin

Tizen, the 4th mobile platform that you can create using Xamarin Forms.

Tizen, which is still on Preview 4, is expected to be released in the last week of October or 1st week of November.

Tizen .NET is an exciting new way to develop applications for the Tizen operating system. Using the C# programming language and the Common Language Infrastructure standards, you can benefit from a managed runtime for faster application development, and efficient, secure code execution. The existing Tizen frameworks are either C-based with no advantages of a managed runtime or HTML5-based with fewer features and lower performance than the C-based solution.

Tizen .NET Features, and Components

  1. .Net Core
  2. Xamarin Forms as a UI framework
  3. Tizen platform-specific API

 

.NET native offers the following advantages

  • Fast execution times
  • Consistently speedy startup times
  • Low deployment and updates costs
  • Optimized application memory usage

 

The supported Tizen platform-specific API namespaces are :

  • Tizen.Applications: Provides the Tizen application framework, including, for example, application state change events, inter-application messaging, and notification services
  • Tizen.Content: Provides content management services, such as file and media downloads, storing and indexing audio and video content, and associating content types with helper applications
  • Tizen.Location: Manages geographical location services and geofencing. Tizen.Multimedia: Interacts with media services, including audio playback, recording, and device policy
  • Tizen.Network: Provides APIs to control connectivity devices, as well as providing various network information
  • Tizen.Security: Provides access to secure storage for passwords, keys, certificates, and other sensitive data
  • Tizen.System: Provides device-specific services, including status, system information and settings, feedback, and sensor control and access

 

Let’s go to Managed Runtime

A managed runtime offers the following advantages for your application development

  • Faster time to develop : Application development is accelerated since the managed runtime already handles many functions that otherwise have to be coded in the application (the Tizen Native API and Tizen Web API already provide this type of benefit)
  • Safer code : Managed runtimes can handle, for example, bound checking, type safety, garbage collection, memory protection services, and objects being invoked directly (the Tizen Web API already provides some of these benefits, but not type safety, as JavaScript is not a strongly typed language)
  • Lower deployment costs : Component-based architecture makes it easier and faster to deploy applications in an enterprise environment characterized by multiple platforms, devices, and legacy systems
  • Better quality software : Managed runtimes free you to focus on the business logic and code specific to the application while reducing the number of coding errors
  • Cross-platform support : The managed code is portable; Tizen .NET applications can have large portions of their logic applied to other systems supported by the .NET Core and Xamarin.Forms portions of the runtime.

 

So what are the requirements?

  1. Visual Studio 2017
  2. Visual Studio Tools for Tizen
  3. Intel HAXM

Download your Visual Studio Tools for Tizen here.

Note: After installing your Visual Studio Tools for Tizen, you have to disable your Hyper-V

 

Disabling your Hyper-V will you require you to restart your computer.

Then now you can start building your Tizen App or include it in your previous Xamarin Forms App.

 

Create and launch your Tizen Emulator

 

And finally, here are the screenshots of the native UI I have created during testing the Tizen for Xamarin Forms.

The view elements you’ll see here are search, label, entry, date picker, time picker, switch, slider, button, and a display alert.

Awesome right? There you go. Now try it out because experiencing it is better than just reading it.