Languages

Menu
Sites
Language
Block screen lock

Hi,

This question concerns tizen wearable native 2.3.1.

Is it possible to block an app from automaticly locking screen? I tried changeing window to be of notification type and setting priority level and while it in foreground - I cannot minimize app using home button.

 

What I want to achieve is behaviour similar to excercise app on gear fit 2.

1) When screen is off both home button and back button wakes the app.

2) When the app is in foreground home button minimizes app (default behaviour).

 

Right now when the screen is off for too long screen lock is on and then pressing home/back button wakes screen lock not the app 

Responses

1 Replies
Armaan-Ul- Islam

This topic is known as Hardware Key Event.

                                                                  

 

Tizen Native API supports Managing Menu and Back key events but not Home key event. Again the Menu & Back key event handling is supported for mobile only yet, Wearable device is not supported to override Home key and Back Key. So, The conclusion is Tizen native API is not yet offering feature to override Hardware key event functions for wearables.

 

Links related I've found: 

Event Handling

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

Managing Menu and Back Key Events

Link: https://developer.tizen.org/development/guides/native-application/user-interface/efl/hardware-input-handling/managing-menu-and-back-key-events