Languages

Menu
Sites
Language
How to keep wearable app on the screen? it goes on background

 have built an wearable app which communicates with the phone back and forth. here is how it works.
 - Android app on phone started

- tizen consumer app started on the watch and automatically creates a connection

- Provider sends data and user enters his results on the watch. Consumer watch sends the databack to phone to save.

-Basically similar to Samsung Health App.

Problem here is watch app goes off the screen and user is returned back to watch main screen everytime screen goes off or app is idle.
Idle means if user doesnt enter anything but connection between phone and watch is still active. Is there a way to prevent this?

Like Samsung workouts. if user only clicks backbutton will be asked for confirmation to complete his workout. 

Edited by: Emil Alipiev on 26 Dec, 2019

Responses

1 Replies
Tizen .NET

Hi,
I think the below link can be helpful. 
https://developer.tizen.org/forums/tizen-.net/screen-always-on
In fact, I don't fully understand the exact scenario(e.g. the timing that the user enters the results) even though you already have provided explanation.
Anyway, using display lock(or cpu lock) can drain the battery. 
I think that an user need to make wrist gestures in order to enter the results. 
If "Wake-up gesture is on, rasing the wrist makes the display on. ("Wake-up gesture can be set via Settings app->Advanced menu)
By using Display.StateChanged, you can get notified about the changes of display's state. When DisplayState is Normal, you can launch your UI app using AppControl. You may consider this if it can handle your scenario.
Thanks.