I just started trying to make a Samsung G3 app using Tizen Studio. I'm very new to coding in C. In the template given by Tizen Studio, I'm not sure where I am supposed to start coding/writing my own code. For example, if I want to start by creating this sensor:

sensor_type_e type = SENSOR_HRM;
sensor_h sensor;

bool supported;
int error = sensor_is_supported(type, &supported);
if (error != SENSOR_ERROR_NONE) {
   dlog_print(DLOG_ERROR, LOG_TAG, "sensor_is_supported error: %d", error);

   dlog_print(DLOG_DEBUG, LOG_TAG, "HRM is%s supported", supported ? "" : " 
   sprintf(out,"HRM is%s supported", supported ? "" : " not");
   elm_object_text_set(event_label, out);

Where would I put that in this short template provided to me:

#ifndef __basicui_H__
#define __basicui_H__

#include <app.h>
#include <Elementary.h>
#include <system_settings.h>
#include <efl_extension.h>
#include <dlog.h>
#include <sensor.h>

#ifdef  LOG_TAG
#undef  LOG_TAG
#define LOG_TAG "basicui"

#if !defined(PACKAGE)
#define PACKAGE "org.example.basicui"

#endif /* __basicui_H__ */

1 Answers

Iqbal hossain On

This is the guide to create your first Tizen wearable application in Native platform. In this guide everything is described step by step. I think by following this guide, you will be able to learn basic of Tizen Native application.

After getting familiar with Tizen, check the Heart rate sample application. Here is a simple tutorial of Heart Rate with source code.

Screenshot from this app is below enter image description here

You may also check this video tutorial on YouTube about Tizen Native App Fundamentals.