add a progress bar when connecting device by AsnycTask.