I used this code to remove previously added image to an EditText
B4X:
Dim ETxt As JavaObject = EditTxt
ETxt.RunMethod("setCompoundDrawablesWithIntrinsicBounds",Array As Object(BMD,Null,Null,Null))
Those codes worked OK on JellyBean, but with Oreo, didn't work, app just closed.
Unfortunately, can pull the error log, caused it is tested on Oreo belong to others.
Dim cd As ColorDrawable
cd.Initialize(Colors.Transparent, 0)
ETxt.RunMethod("setCompoundDrawablesWithIntrinsicBounds",Array As Object(Null,Null,cd,Null))