After a long day, finally asynchronous task for connecting to bluetooth
server is done. Progress dialog keeps moving until the connection
establishes. Connect and Cancel buttons works in accordance to each
other. Either one of these buttons works at the same time.