Languages

Menu
Sites
Language
Motion detection does not work?

Hi there,

I added motion detection into my App, and noticed the callback functions not called. I was shaking my poor RD-PQ device like hell, but OnShakeDetected was not called.

Ok, I thought maybe I did something wrong...so I imported the MotionDetector TIZEN sample app.
Aaaaand, that also did not work. None of the motion callbacks are called, whatever I do with the phone.

Could someone test on his device please, to be sure, is this a bug in the current Tizen/SDK, or my Phone?

thanks

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

16 Replies
Zoltan Puski
I did some tracing: code: AppLog("MOTION_TYPE_SHAKE: %d", _motion->IsSupported(MOTION_TYPE_SHAKE)); AppLog("MOTION_TYPE_SNAP: %d", _motion->IsSupported(MOTION_TYPE_SNAP)); AppLog("MOTION_TYPE_DOUBLETAP: %d", _motion->IsSupported(MOTION_TYPE_DOUBLETAP)); AppLog("MOTION_TYPE_MOVE_TO_EAR: %d", _motion->IsSupported(MOTION_TYPE_MOVE_TO_EAR)); result: virtual result testSound2Form::OnInitializing()(75) > MOTION_TYPE_SHAKE: 1 virtual result testSound2Form::OnInitializing()(76) > MOTION_TYPE_SNAP: 1 virtual result testSound2Form::OnInitializing()(77) > MOTION_TYPE_DOUBLETAP: 1 virtual result testSound2Form::OnInitializing()(78) > MOTION_TYPE_MOVE_TO_EAR: 1 So all motions are supported by the phone. However callbacks are not called.
tizendevteam T
Due to some licence issues, sensors plugin is not supported in currently. We would make avaiable in future releases. Thanks
Zoltan Puski
Quick update: in 2.2 not available yet.
Patrick Mortara
Any news on that? I really need that sensor-plugin to be working for one of my projects ....
Alex Dem

Hi all,
For Emulator you could imitate motion events using Event Injector view. This trick could unblock your development.
Please look at this article also:
https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.gettingstarted%2Fhtml%2Fdev_env%2Fproviding_sensor_data.htm
p.s. For device I was unable to use it.
Alexey.

Nikolay Syedin

Hi all,

Is it possible to use motion detection on 2.2.1? I tried, but without any success.

Alex Ashirov

Hi,

Yes. I have just tried and it works. At least I was able to catch Shake Started and Shake Ended events. I used MotionDetector sample provided with SDK.
 

Nikolay Syedin

Alex,

Could you tell me the sequence of motions? I tried to catch something in MotionDetector sample provided with SDK, but without any result. May be i must turn on some additional functional in phone or in SDK?

Alex Ashirov

Hi,

I didn't do something special. I just moved the device up and down intensively as if making a cocktail.

BTW, you can try this on Emulator as well. In this case you can use the Event Injector in order to generate "Double Tap", "Shake Start" etc.

Nikolay Syedin

Alex,

Big thanks for reply. Tell me please what version of SDK and phone model are you using. I use phone Model: Ref.Device-PQ SDK Version: 2.2.1. Motion detector works only on Emulator with Event Injectior.

Alex Ashirov

Hi,

I use SDK Version 2.2.1. I don't remember exactly about h/w. I will update you on that tomorrow.

Alex Ashirov

Hi,

I use the same model: Ref.Device-PQ.

Nikolay Syedin

Thank you very much

Zoltan Puski

*Update 2.2.1 - not working*

I just installed (a bit late, a I know) 2.2.1 to my phone (PQ), and motion detection still does not work.
Neither in My App, nor in the SDK Sample/MotionDetector App. Tried both debug and release versions.

Alex Ashirov

Hi,

I have just tried the MotionDetector sample and it works fine. I was able to observe the both Shake Started and Shake Ended messages. I use Tizen 2.2.1 and PQ device. Probably there are some problems with sensors on your device.

Zoltan Puski

Hi,

Could be that my device has problem, but it's 100% does not work on my 2.2.1 PQ device.
And if you read above, other users (like Nikolay Syedin) has the same problem with 2.2.1.

Aaaand, it seems it does not work on a real Samsung Z device neither. Testers rejected my App, saying it does not do anything for shaking the phone.
If I simulate shake in the emulator, it works fine - so my code is ok. Except shake is not detected on any real device (Samsung Z/PQ test)

I think there could still be some problem with the motion detection in Tizen 2.2.1...