I have an AsyncTask to execute while trying to connect the phone to a Bluetooth device, I want to change an icon from a button if it connects successfully
(I'm new to Kotlin programming)
I would be very grateful if anyone could help.
Replace this with line 146 val blueBtn=this@MainActivity.findViewById(R.id.blue_btn)