언어 설정

Menu
Sites
Language
Grabbing Hardware Key Events in a service

I'm completely noob in Tizen development. Using Tizen SDK 2.3.1 rev 1.

Is there any way to grab the hardware key events in a service???

I want to detect the volume up & down button together.

Edited by: Shahadat Hossain on 22 4월, 2016

Responses

4 댓글
Nafisul Islam Kiron

Hello, Services run in the background without any GUI. The main menu does not contain icons for service applications.

Your GUI based app can use functions from a Service app.

You can grab HW key events from GUI based app and call required functions from a Service.

 

https://developer.tizen.org/dev-guide/2.4/org.tizen.ui.practices/html/native/efl/key_grab_n.htm

https://developer.tizen.org/development/guides/native-application/application-framework/service-application

https://developer.tizen.org/development/api-tutorials/web-application/tizen-features/service-application

Shahadat Hossain

thanks for ur kind reply.

But here's the thing my app GUI app will be configuring the service, the service will be running all the time and whenever user presses the volume buttons together, service will do it's work.

how it can be done?? Can you please give me any alternative ideas??

Nafisul Islam Kiron

As far as I know you can do that kind of action only in app foreground.

I haven't found any document or references that says this can be done.

Ashwini Kumar

Hi All,

I am also looking to capture the Volume button event in my service.

If a frontend GUI app is required to capture the HW key events, then in case of Volume change which app is capturing the key event. 

As the Volume change happens irrespective of any app running on Front (GUI). Also screenCapture is another case.

There must be a way to capture these events I guess.

Any help is appreciated.

Thanks,

Ashwini