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);
return;
}
if(supported){
dlog_print(DLOG_DEBUG, LOG_TAG, "HRM is%s supported", supported ? "" : "
not");
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
#endif
#define LOG_TAG "basicui"
#if !defined(PACKAGE)
#define PACKAGE "org.example.basicui"
#endif
#endif /* __basicui_H__ */