Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-30-2009, 03:25 PM
Junior Member
 
Join Date: Aug 2009
Posts: 24
Default How to turn on camera/foto light?? Help!

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...
Reply With Quote
  #2 (permalink)  
Old 08-31-2009, 05:43 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,534
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

What do you mean with 'foto light'? Which device is it?
__________________
Basic4ppc reference list
Reply With Quote
  #3 (permalink)  
Old 08-31-2009, 09:55 PM
Junior Member
 
Join Date: Aug 2009
Posts: 24
Default

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
Reply With Quote
  #4 (permalink)  
Old 09-02-2009, 03:47 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,534
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

As far as I know that is currently not possible. Though Samsung has a SDK for these devices so we may create a Samsung specific library in the future.
__________________
Basic4ppc reference list
Reply With Quote
  #5 (permalink)  
Old 09-02-2009, 07:21 AM
Junior Member
 
Join Date: Aug 2009
Posts: 24
Default

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.
Attached Files
File Type: zip TorchButtonOmnia.src.20081114.zip (24.2 KB, 15 views)
Reply With Quote
  #6 (permalink)  
Old 09-02-2009, 12:24 PM
Senior Member
 
Join Date: May 2008
Location: Italy
Posts: 174
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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.
__________________
rgds,
moster67
Reply With Quote
  #7 (permalink)  
Old 09-02-2009, 01:21 PM
Junior Member
 
Join Date: Aug 2009
Posts: 24
Default

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...
Reply With Quote
  #8 (permalink)  
Old 09-02-2009, 01:36 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 243
Default

I'm checking this out currently. I hope there will be an answer in a couple of hours.
Reply With Quote
  #9 (permalink)  
Old 09-02-2009, 07:27 PM
Senior Member
 
Join Date: May 2008
Location: Italy
Posts: 174
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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.
__________________
rgds,
moster67

Last edited by moster67 : 09-02-2009 at 08:28 PM.
Reply With Quote
  #10 (permalink)  
Old 09-02-2009, 09:18 PM
Junior Member
 
Join Date: Aug 2009
Posts: 24
Default

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....
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn off screen and lock device Hitec Questions & Help Needed 2 08-02-2009 04:43 PM
Turn off the Device Georg Questions & Help Needed 1 07-07-2009 10:30 PM
USB Ports and Camera ceaser Questions & Help Needed 2 05-04-2009 06:20 PM
A problem with the GPSDriver when turn off the screen schimanski Questions & Help Needed 9 02-21-2009 02:38 PM
Metronome with tempo light Cor Questions & Help Needed 0 01-24-2008 10:27 PM


All times are GMT. The time now is 09:48 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0