ImageView not refreshing/reflecting changes

前端 未结 8 1203
星月不相逢
星月不相逢 2021-01-03 22:26

I\'m using a photo picker intent to choose an image and write it to an application-private file. Most of my important source code is shown below. Once I press a button and p

8条回答
  •  死守一世寂寞
    2021-01-03 22:53

    I would suggest this thing solution. After trying lot of solutions i found this one worked for me.

    final Handler handler = new Handler();
                        handler.postDelayed(new Runnable() {
                            @Override
                            public void run() {
                                //Do something after 1000ms
                                ivProfilePic.setImageBitmap(bitImage);
    
                            }
                        }, 1000);
    

提交回复
热议问题