A lot of copy pasta from the Bluetooth Sample / The MainActivity should be fine. For the Servicefile obviously the characteristics have to be changed