Languages

Menu
Sites
Language
Is there Tizen Native Application sample for gravity sensor?

I find a web application sample for gravity sensor, but it seems no help for native application.

And I could see a native application sensor sample, but it only involves acceleration sensor.

Is there any native application sample can be reference for gravity sensor? Or any one can share your codes on how to use gravity sensor in native applicaiton?

Edited by: Jean Yang on 15 Sep, 2015

Responses

4 Replies
colin Rao

Hi,

Seems the Z1 don't support the gravity sensor. Also, seems you can use the acceleration sensor to implement the gravity sensor's functions.

Alex Dem

Hi,
Yes looks like Z1 does not support. And for web apps is used acceleration (via 'devicemotion' api):
https://developer.tizen.org/community/tip-tech/sample-game-using-device-sensors-your-web-applications
Alexey.

Jean Yang

Thanks colin and Alex!

I've found the codes to test what sensors the Tizen devices support, and I've paste it in the codesnipper. Z1 should only support acceleration sensor. I'll try to use acceleration sensor to implement the functionality in my program.

https://developer.tizen.org/community/code-snippet/native-code-snippet/codes-test-sensors-your-tizen-devices-support.

Alex Dem

Hi,
I have checked with Z3 it supports acceleration& proximity  sensors.
Alexey.