Languages

Menu
Sites
Language
How to turn on and turn off flash from tizen native app

Hi All ,

I am trying to develop flashlight application using tizen native app development framwork. But I am unable to do it. Please provide simple code or way how we can achive this.

I tried to create camera handel , set flash mode etc but it didn't work

Please suggest step by step method

Your suppport is appriciated 

Thanks ,

Ashish

Responses

4 Replies
Alex Ashirov

Hi,

Please take a look at the following API:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.apireference/group__CAPI__SYSTEM__DEVICE__LED__MODULE.html

I didn’t use it but it seems that this is what you are looking for.

John Ixion

There's a flashlight app in the tutorials: https://wiki.tizen.org/wiki/EFL_Tutorials

Jeongmo Yang

You can also control flash with camera API,

but, it will work after start preview.(camera should be turned on.)

If you don't need camera function and just want to control flash, as Alex Ashirov said, you can use device LED API.

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__SYSTEM__DEVICE__LED__MODULE.html

Palitsyna

Hello,

do not forget to add http://tizen.org/feature/led and http://tizen.org/feature/camera.back.flash priveleges to your tizen-manifest.xml file. You can also find information about Led API in IDE help: Open IDE -> Help -> Help Contents ->  Led API.

 

Regards,

Svetlana Palitsyna