see #1

getting name problem solved, by making the addDevice call in the
clickListener of the positive button of the dialog box waiting for name
input