B4A-Bridge is made of two components. One component is running on the device and the other is embedded in the IDE. The device side is the server side. It waits for connections and when a connection is established it handles the "action" messages. The code itself is made of a simple activity...
www.b4x.com