0

I am trying to build app that show if some of your device hardware is not plugged properly. For example if your camera sensor is unplugged than the camera app will disappear from your device apps list and you will not be able to use it. I want to know if there is a way to know using software only if the microphone is not plugged

Note - if i cant hear no sound it can be because the microphone broken and not because he got unplugged

ONE MORE THING im not talking about headset state because i know you can know if there is headset and if it is with mic or not

Alon Barad
  • 1,491
  • 1
  • 13
  • 26
  • Possible duplicate of [Detecting whether a headset is plugged into an Android device or not.](https://stackoverflow.com/questions/6249023/detecting-whether-a-headset-is-plugged-into-an-android-device-or-not) – Morrison Chang Oct 16 '17 at 22:43
  • Additionally: https://developer.android.com/reference/android/media/AudioManager.html#ACTION_HEADSET_PLUG – Morrison Chang Oct 16 '17 at 22:47

0 Answers0