According to the API docs, setBackgroundResource expects an int.
If you definitely need a bitmap, you can use setBackgroundDrawable instead and wrap your bitmap in a BitmapDrawable.
example
textureView.setBackground(new BitmapDrawable(getResources(), bitmap));
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…