语言

Menu
Sites
Language
Change screen unlock behaviour on wearable devices

Hello!

I've just bought Gear S3, it's an awesome device, but it's behaviour is very annoying for me currently, it frequently wakes up when I don't want it to.  What I want:

* Have a Always On Display feature enabled, so I can see the time always.
* Device should not be woken up by screen touches or by bezel rotation, they should both be deactivated in AOD mode.
* Device should wake up on Power/Back button press only, as it rarely happens accidently and still very easy to do.
 

I've been trying to figure out how to do that, but no luck.
One of the possible options is to write my own watch application and grab bezel rotation and touch events manually, but looks like it's impossible :(

I also tried to disable some input methods using `xinput`, but looks like they are only disabled everywhere except AOD screen.

Any advice how I can achieve the desired behaviour?

响应

4 回复
Armaan-Ul- Islam

You can check the Event Handling: Rotary events,

Web application (watch face):

https://developer.tizen.org/development/training/web-application/understanding-tizen-programming/event-handling#rotary

Native application (watch face):

https://developer.tizen.org/development/training/native-application/understanding-tizen-programming/event-handling#rotary

 

To detect and write code (to ignore touch) you may add web touchevent listeners for web watchface:

document.addEventListener('touchmove', function () {
 
    }
);
 
document.addEventListener('touchstart', function (ev) {
     
    }
);
 
document.addEventListener('touchend', function () {
    }
);

Link: https://developer.tizen.org/community/tip-tech/html5-features-on-tizen?langswitch=en

 

And for touchevents in native watchface you may also check out this link:

http://stackoverflow.com/questions/39043092/how-to-handle-touch-event-on-tizen-watchface

Anton Kirilenko

Sorry, the comment above was actually the reply to you. Check it out please :)

Anton Kirilenko

Thanks for the reply! But actually touchscreen is not the main problem. The main one is bezel. Especially at night, your hand moves, touches the pillow and so on, bezel rotates and unlocks the screen. And same problem during a day because of the sleeves.

So waht I want, is to lock bezel when the screen is off.

I tried to handle rotary events on the watch-face app, but looks like the app doesn't receive this events at all, they are grabbed by the main screen app or somethig like that. Or maybe I'm just doing it wrong?

Armaan-Ul- Islam

Good thoughths you have! You can share your experience and findings (like movement of bezel while sleeping ) on Open Talk Forum, they takes Users/Developers Input from there as far as I know.Link to OpenTalk:

http://developer.samsung.com/forum/board/thread/list.do?boardName=SDK&searchSubId=0000000044

 

Now,for current set up, while you are on watch face, moving bezel left/right traverse you to notification and widgets. So, I think watch application cannot override bezel rotation event as here as it is fixed by default for navigating through notifications,watch and widgets (though screen is off/on).