I am adding the device list to the ArrayAdapter and show it in ListView, where device list is getting from the Bluetooth scan, the scanned devices first add to the arrayadapter. Then later i am adding it to the listview to show the list of scanned bluetooth devices to user.

But when i am scanning for the devices, duplicate device is adding, suppose a device A is scanned means then again two or three times its showing device A. I want to show the list of scanned device only one time. How to achieve it. Sorry if question is vague.

Following code is for enquire new devices and adding it to arrayadapter: