Conversion

Added support for bluetooth state
removed android looper
converted test form groovy to java