Questions tagged [camera-flash]

58 questions
0
votes
2 answers

Libstreaming: Can we perform zoom in and out in camera on surfaceview as well as on-touch Focus circle and Flash in camera preview?

I am developing an android application using libstreaming streaming library. The app is sending upstream on Wowza (Mobile to Wowza). I created one surfaceview which has the camera preview. It's working fine but I want to add three functionalities…
Ram
  • 3,887
  • 4
  • 27
  • 49
0
votes
1 answer

Flashlight app onResume not functional?

Hey guys I'm working on a flashlight app using an online tutorial. I've made few changes to the app. I wanted the flashlight to stay on if the user goes to the home-screen or locks the screen. However when I do this and open default camera app and…
Muhammad Ali
  • 3,478
  • 5
  • 19
  • 30
0
votes
2 answers

Camera Flash Turn Auto/On/Off with UIImagePickerController in IOS - Swift

I am very new to IOS Swift. But I am building a sample camera app that takes picture and video and then saved to photo gallery. But I want user to choose Auto/On/Off Flash option on the Camera View and when the user takes the picture then flash…
0
votes
1 answer

Make camera light flash

I want to make the camera light flash. My code will make it flash just fine of a single button press but if I hit the button again before it has finished flashing it will crash my app. I believe I need to somehow check to see if it is still…
Chad
  • 159
  • 1
  • 3
  • 15
0
votes
1 answer

Toggle on/off flash with AVCam

I'm using Apple's AVCam source code to create a custom camera, I'm trying to toggle flash on/off but its not working. Here is my code, not sure what's wrong. I'm new to AVCam. - (void) toggleFlash:(id)sender { dispatch_async([self…
Hemang
  • 26,840
  • 19
  • 119
  • 186
0
votes
1 answer

How to handle camera flash in application life cycle

I don't know how to handle camera flash in my app. My app has a button which turn camera flash on and off, everything is OK and app working fine, even when pressing back button and coming back to app it works fine. But when i press HOME button when…
Mehrdad Salimi
  • 1,400
  • 4
  • 16
  • 31
0
votes
2 answers

Android Camera: Turn on/off camera flash - Application crash when rotate device

I have a simple application with a button to turn on/off camera flash: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button button =…
Dark Light
  • 933
  • 1
  • 10
  • 20
0
votes
0 answers

Correct implementation of Flash for Custom Camera

I have a custom Camera that works just fine,except for the implementation of flash that Iam using.I have tried using FLASH_MODE_AUTO in surfaceChanged.I have also tried using the following code using a Light Sensor: SensorEventListener…
vamsiampolu
  • 6,328
  • 19
  • 82
  • 183
0
votes
1 answer

Android app crashes on startup

I am trying to make a flash app for android app. But when i start my application it crashes and logs the following crash log. 09-10 14:42:20.354: D/AndroidRuntime(14025): Shutting down VM 09-10 14:42:20.354: W/dalvikvm(14025): threadid=1: thread…
Ehsan
  • 316
  • 2
  • 10
-1
votes
1 answer

Detect when camera flash button is pressed?

I have a UIImagePickerController, used for taking pictures. There is a lightning button in the top left corner. When it is pressed, it brings up the three options: Auto, On, Off. These buttons refer to whether the flash mode is auto, on, or off. I…
-1
votes
1 answer

Android camera2 enable auto flashlight

How can I enable default flashlight turn off or on feature in camera2, Can I enable settings options in it like default camera? I seen some example like here and here but they are using their own buttons to turn on or off flash, here I want to use…
Shailendra Madda
  • 20,649
  • 15
  • 100
  • 138
-1
votes
1 answer

Why does flash drives app in stack? CONTROL_AE_MODE_ON_ALWAYS_FLASH Camera2API

There is weird situation. I took standard google sample camera2API. I need that flash is worked permanently, regardless of outside light. In order to accomplish it i have changed one line of code: private void setAutoFlash(CaptureRequest.Builder…
Sirop4ik
  • 4,543
  • 2
  • 54
  • 121
-2
votes
1 answer

Check my android has flashlight

how can i check that my Android Device have camera flashlight? If Code so where should i put that to check my device flash availability. Tell me please every way to check and How can i open it. I have Android COCA Pierre alps P5000 MTK Device.
1 2 3
4