Conversion

Added support for bluetooth state
removed android looper
converted test form groovy to java
I guess this method no longer ever runs on the UiThread so it can be renamed.