merged BlueTerm.java with MainActivity but failing to start