Languages

Menu
Sites
Language
Tizen Z1: sensor issue

Hi

My game previously working for Tizen 2.2 doesn't work for Z1 (SDK 2.3). Seems accelerometer doesn't work.

I use SENSOR_TYPE_DEVICE_ORIENTATION. I can't check it on Z1 by RTL - can't install build from 2.2.

 

Do you know the issue on Z1? What sensors are supported by Z1 from below?

* @since    2.0
*/
enum SensorType
{
    SENSOR_TYPE_ACCELERATION = 0,    /**< The acceleration sensor type */
    SENSOR_TYPE_MAGNETIC,            /**< The magnetic sensor type */
    SENSOR_TYPE_PROXIMITY,           /**< The proximity sensor type */
    SENSOR_TYPE_TILT,                /**< The tilt sensor type */
    SENSOR_TYPE_GYRO,                /**< The gyro sensor type */
    SENSOR_TYPE_LIGHT,               /**< The light sensor type */
    SENSOR_TYPE_GRAVITY,             /**< The gravity sensor type @b Since: @b 2.1 */
    SENSOR_TYPE_USER_ACCELERATION,   /**< The user-acceleration sensor type @b Since: @b 2.1 */
    SENSOR_TYPE_DEVICE_ORIENTATION,  /**< The device-orientation sensor type @b Since: @b 2.1 */
    SENSOR_TYPE_MAX,                 // This enum value is for internal use only.
                                     // Using this enum value can cause behavioral,
                                     // security-related, and consistency-related
                                     // issues in the application.
    SENSOR_TYPE_NONE = -1,           // This enum value is for internal use only.
                                     // Using this enum value can cause behavioral,
                                     // security-related, and consistency-related
                                     // issues in the application.
};

 

I will appreciate for any hint in this case.

 

Regrds

sla

 

 

 

 

View Selected Answer

Responses

5 Replies
Alex Ashirov

Hi,

You can read about sensors supported by Tizen 2.3 here:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.appprogramming/html/guide/system/sensor.htm

But it seems that Z1 doesn’t support all of them. I tried Sensor App sample delivered with the SDK on the Emulator and device. It shows number of sensors on the Emulator and only Acceleration is available on the device. 

John Ixion

Z1 specs: https://www.samsungindiaestore.com/products/Mobiles/Samsung_Z1_SM-Z130HWRD

John Ixion

The specs of every Tizen device are here btw https://wiki.tizen.org/wiki/Devices

Slawek Kowalski

Thanks guys. I will check all you said. Probably must change type of sensor. I hope.

 

Mark as answer
Slawek Kowalski

Sensor type:

SENSOR_TYPE_ACCELERATION

 

works for Z1.