# How to detect camera is attached or removed using flash

**URL:** <https://forum.kirupa.com/t/how-to-detect-camera-is-attached-or-removed-using-flash/633798>\
**Category:** Uncategorized\
**Created:** [September 21, 2015, 10:18am UTC](https://forum.kirupa.com/t/how-to-detect-camera-is-attached-or-removed-using-flash/633798 "2015-09-21T10:18:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swap](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@swap](https://forum.kirupa.com/u/swap)\
**Post date:** [September 21, 2015, 10:18am UTC](https://forum.kirupa.com/t/how-to-detect-camera-is-attached-or-removed-using-flash/633798/1 "2015-09-21T10:18:21Z")

</div>

I am using camera object to detect whether camera is attached or not and also to find if camera is attached or remove after some time.now I am facing problem that initially camera is unplugged now the status is no camera found.after that I plugged the camera now it show camera found but if again I unplugged the camera then it keep on showing camera is available.I am calling the camera object in timer.The code is as mentioned below
