[android-developers] Re: how to use the camera as LED flashlight

2012-05-17 Thread Lisa
Hi Jim thanks for response. What a coincidence...I'm also Jim.  :-) (^_^) Go to the Android Developers Guide (http://developer.android.com/guide/index.html) and search for camera. I see but I not find solution. A) determine if it even HAS a camera; PackageManager pm =

Re: [android-developers] Re: how to use the camera as LED flashlight

2012-05-17 Thread Jim Graham
On Wed, May 16, 2012 at 11:22:59PM -0700, Lisa wrote: C) assuming it has a flash, determine if it supports FLASH_MODE_TORCH; ? ?using parameters.getSupportedFlashModes(); ListString list = parameters.getSupportedFlashModes(); And then you cycle through the List to see of torch is one of

[android-developers] Re: how to use the camera as LED flashlight

2012-05-17 Thread Lisa
Hi Jim (^_^) thanks for response. And then you cycle through the List to see of torch is one of the values.  If it is, proceed.  If not, tell the user that their device does not support being used that way, close the camera and exit. ok, I understand. In this case samsung no support torch,

Re: [android-developers] Re: how to use the camera as LED flashlight

2012-05-17 Thread Jim Graham
On Thu, May 17, 2012 at 12:02:32PM -0700, Lisa wrote: Focus mode has nothing to do with the flash. ?If you don't need it for some other reason, you don't need it. but if I clean this code not work. why? My guess (without seeing the actual finished code) is that you've cleaned out

[android-developers] Re: how to use the camera as LED flashlight

2012-05-16 Thread Lisa
Hi Jim thanks for response. could you tell me how I can do to make the led of samsung GT-S5830L turn on. thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] Re: how to use the camera as LED flashlight

2012-05-16 Thread Jim Graham
On Wed, May 16, 2012 at 12:12:41PM -0700, Lisa wrote: Hi Jim thanks for response. What a coincidence...I'm also Jim. :-) could you tell me how I can do to make the led of samsung GT-S5830L turn on. Go to the Android Developers Guide (http://developer.android.com/guide/index.html) and search