Is there any way to replace a value in an ArrayAdapter
mPairedDevicesArrayAdapter = new ArrayAdapter<String>(this, R.layout.device_name);
..
..
for (BluetoothDevice device : pairedDevices) {
String name = MPGDeviceDetailsControl.getDeviceDetails(this, device.getAddress(), device.getName()).getDisplayName();
mPairedDevicesArrayAdapter.add(name + "\n" + device.getAddress());
}
If I wish to replace one of the entries is there any way of doing it without deleting and reinstering.
Problem with that is that it puts it at the bottom.
Something like this should work to replace items
but it would be more efficient, if you have access to the List that is backing this ArrayAdapter and replace / modify that.