how to update ImageView from bitmap in android
I am receiving a byteArray of my image over a socket from a localserver. the byteArray is represented as RGB. I'm converting it to bitmap. I checked that the bitmap is not empty. but when I use ImageView.setImageBitmap(bitmap) then my android app crashes. I've already tried a lot of things and I can't find a solution yet. help me please
class Cam : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
Log.d("Cam activity", "onCreate")...