Languages

Menu
Sites
Language
Set the application on top

Hi,

 

I was searching for the ability or settings for the wearable Gear application to stay on top over the watchface. When application starts it is visible, after a short period of time even after waking up the watch. But a few moments later it is gone and only watchface is visible, it can be recalled again by the "Recent applications".

Is this some setting in the manifest file?

 

Thanks in advance!

View Selected Answer

Responses

4 Replies
Armaan-Ul- Islam

Please Share:

# The meaning of "stay on top over the watchface"

 

Is it like a 'pop-up window' or 'Icon/Notification' like UI stuff on/over Watchface UI ? Are you developing WatchFace ?

Or Is it an application running independently on Gear ? (No relation with the Wacthface at all)

 

 

# And What do You meant by "moments later it is gone and only watchface is visible" ?

 

Is the UI stuff over Watchface UI gone?

Or your App is closed and Watchface (Which is the Default HomeScreen app of Gear) is visible on Gear display?

Szybkie Kluski

 

This is the last situation. My app becomes in the background and watchface becomes visible when looking at the device. I can reinvoke it by the circular icon or by launching it again by the application icon.

 

I wanted that my application be visible on top, like for example Endomondo is. When you look at the device the Endomondo always is visible when the training is on. So I wanted with my application to stay on top.

 

Thanks!

Mark as answer
Armaan-Ul- Islam

Thanks For the Info.

 

Your app remaining top over watchface means, It doesn't get suspended.

 

You can try this solution on Tip&Tech document:

# Keeping the Screen Awake (Until Pressing the HOLD Button)

Link: https://developer.tizen.org/community/tip-tech/keeping-screen-awake-until-pressing-hold-button

 

# Again, You can also try device_power_wakeup() to prevent screen from dimming.

static void
display_changed_cb(device_callback_e type, void *value, void *user_data){
    if(DEVICE_CALLBACK_DISPLAY_STATE == type) {
    	dlog_print(DLOG_INFO, LOG_TAG, "[device_changed_cb] display state: %d\n", (char*)value);
    	device_power_wakeup(EINA_FALSE);
    }
}

Link: https://developer.tizen.org/ko/development/api-references/native-application?redirect=/dev-guide/2.3.1/org.tizen.native.mobile.apireference/group__CAPI__SYSTEM__DEVICE__POWER__MODULE.html#gac0f0c8101d5b1eba0ade0c9e8f44eeef

 

# If you are using any Sensor functions, Use SENSOR_OPTION_ALWAYS_ON

Link: https://developer.tizen.org/ko/development/api-references/native-application?redirect=/dev-guide/2.3.1/org.tizen.native.mobile.apireference/group__CAPI__SYSTEM__SENSOR__MODULE.html#gaf517b61e58b872f985fc2fc2a26aa56a

 

Related posts:

https://developer.tizen.org/ko/forums/native-application-development/native-app-running-background?langswitch=en

https://developer.tizen.org/ko/forums/native-application-development/tizen-accelerometer-sensor-usage?langswitch=en

Szybkie Kluski

Thank you very much for the answer. I will give it a try!