How to turn on camera/foto light?? Help!

BehindA

Member
Licensed User
Hi,

i'm searching for a method to turn on/off the foto light of my ppc. i already searched through the whole forum but couldn't find anything.

Please help me...
 

BehindA

Member
Licensed User
Hi Erel,
i mean the flash light of the camera. that you can also use as torch. My device is Samsung i900 Omnia.

Thanks for your answer so far... i hope you can help
 

BehindA

Member
Licensed User
But i found this example.
It is definitly possible. Would you or someone else be able to use this code and create a library for basic4ppc.

I hope you can. I want to create an alarmclock that turns on the light when it starts ringing.
 

Attachments

  • TorchButtonOmnia.src.20081114.zip
    24.2 KB · Views: 214

moster67

Expert
Licensed User
Longtime User
At this link:

Moto Q Flashlight | CharltonFamily.net

you can find another example (and source code) for activating the Flash light. Although it's for Moto Q, the documentation says it might work on other Windows Mobile devices as well.

The source code includes the code for the native-library (however, on the page you may find the library already compiled) but more importantly, it includes a wrapper for this library in C#.

I have no device with a Flash so I can't test. Don't blame me if it doesn't work, if it ruins your device or if you need to make a hard-reset.

Good luck.
 

BehindA

Member
Licensed User
Sorry, i'm no expert and can't use this .dll with basic4ppc.

would you be able to create a useable .dll for me?

Thanks for your work so far...
 

moster67

Expert
Licensed User
Longtime User
BehindA:

if you let me have your e-mail, I can send you a sample application including the libraries needed.

The documentation says it MIGHT work on other Windows Mobile devices as well but there are no guarantees.

As mentioned before, I have no device with a Flash so I can't test. Don't blame me if it doesn't work, if it ruins your device or if you need to make a hard-reset. The choice is yours alone if you want to test it or not.

Edit:
I should also add that I believe getting the flash to work might not be easy since it is also hardware-specific (probably Motorola, HTC, Samsung and so forth have implemented their own APIs). If, however, it works against all odds, I guess you must be very careful since the flash (the lamp) has surely not been designed to remain "on" for many seconds and it might break. I mean, when I use the flash on my normal digital camera, the flash gets enabled only for a very short period of time, probably a fraction of a second.
 
Last edited:

BehindA

Member
Licensed User
Hi moster67,
i just tried the .exe-file of the MotoQFlashlite-archive. It didn't work on my samsung omnia...
But the file i uploaded is especially for my device and did work. Do you think you are able to take the .dll file i loaded up and convert it to a .dll that i can use with basic4ppc??

The sources are also included in the above .zip folder. But my knowledge about programming with c++ an so on is really not enough to handle those files....
 

moster67

Expert
Licensed User
Longtime User
Did you copy the library as well?

Hi moster67,
i just tried the .exe-file of the MotoQFlashlite-archive. It didn't work on my samsung omnia...

Unfortunately also my knowledge of C++ isn't much to talk about. I noted that the program is written in C++ and I doubt that I am able to port it. Sorry, maybe someone else?

The sources are also included in the above .zip folder. But my knowledge about programming with c++ an so on is really not enough to handle those files....
 
Top