Android Question Audio Port to Detect Contact Closure

Mickster

Active Member
Licensed User
Longtime User
I need to detect the contacts of a hardware push-button, using the audio port.

I plan to use a LOOP-BACK Circuit where the push-button contacts make/break the connection to the mic input.

The idea is that when looking for a push-button closure I would output an audio signal and detect if the signal was being looped-back to the mic. If present, the contact would be closed.

What is the easiest way to achieve this in B4A?

Cheers!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…