Languages

Menu
Sites
Language
Background service

Hello I am newbie in Gear 2 application development. I want to know there is any way to create a background service in Gear2 application to capture the power button event ? I see the Gear2 documentation but I do not get enough information for topic.

Thanks

Responses

6 Replies

No background services concepts in Gear app and AFAIK no event to capture power button

 

AVSukhov

Hello,

As I know this is impossible since the Tizen Wearable SDK supported only Web API

AMAL SHIWANTHA

Hi

If you want to get some services from background, you will have to use a js component.

window.setInterval(function(){}

flopo lopolus

well you can run an event in the background using this in your config.xml file:

    <tizen:setting background-support="enable" />

 

and you can add an event to the home button by putting this in your config.xml file
    <tizen:setting hwkey-event="enable"/>

but there doesnt seem to be a way i can see to attach the home key event to the hardware home button =(

Marco Buettner

Gear supports only back as HWKey... Read the documentation

AVSukhov

Hello,

Tizen Wearable supported only "back" hwkeyevent

Please see documentation:

Tizen Wearable Web App Programming > IDE and Tools > Web IDE > Configuration Editor > Tizen Settings