Used a Thread instead of a runnable to allow the BeginScanning button to
act on a different thread then the rest of the program.

Signed-off-by: tclchiam <tclchiam@gmail.com>