add while loop in ceentral activity and send message in on event