Gestures not working on Tizen Z3 mobile

Gestures not working on Tizen Z3 mobile

BY 23 Aug 2016 Native Application Development

Hi,

I am trying to use Shake gesture on my Tizen mobile and on creating a gesture handle it returns me GESTURE_ERROR_NOT_SUPPORTED.

But as i know there are many applications which make use of shake event to perform their operations. So can anyone tell me the right way to get the shake event on tizen Z3 mobile.

Below is the code snippet i used

 

    error = gesture_create(&ad->gesture_handle);
    if(error == GESTURE_ERROR_NONE)
    {
        PRINT_MSG(“gesture_create = Success (%d)”, error);
    }
    else if(error == GESTURE_ERROR_NOT_SUPPORTED)
    {
        PRINT_MSG(“gesture_create = GESTURE_ERROR_NOT_SUPPORTED (%d)”, error);
    }

    gesture_start_recognition(ad->gesture_handle, GESTURE_SHAKE, GESTURE_OPTION_ALWAYS_ON, gesture_cb, NULL);

Thanks in advance

Written by