I just need some initial directions as I am new when it comes to electronic hardware and the interaction of Android and Android. I am comfortable in both domains within their borders.
I have a black box electronic circuit. To simplify everything, suppose that everything he does sends a binary 1 or 0, i.e. electrical impulse on or off. I need to connect this circuit to my Android phone via USB (host / accessory mode) and want my Android app to respond to this impulse.
If possible, launch the application when the phone receives a 1 / ON signal OR display the "On" dialog box when the application is running in the background as a service
Please do not worry too much about the electronics part. I know this is a programming / programming forum.
eg. black box: an electronic thermometer that sends a pulse / 1 / switch-on signal if the temperature goes up to 100 degrees Celsius or something like that on a simple circuit board (without a processor or programming language / it depends on the architecture) and can cause a signal, which can be sent to an Android phone to inform my application that an event has occurred.
Another simpler example is a headphone that has a connect / disconnect button connected to the audio jack of an Android phone. I just need to reproduce this functionality. instead of the phone or the phone, my electronic BB and instead of the phone call program, a custom Android application.
Links, DIY projects, Tuts anything really useful
source share