I have a simple thread listening to UDP broadcasts to discover devices on my network. Whenever it receives a broadcast, it posts a Runnable to a Handler
Runnable
Handler