Can you help me please? I\'ve tried :
ImageButton imgbt=(ImageButton)findViewById(R.id.imgbutton); Uri imgUri=Uri.parse(\"/data/data/MYFOLDER/myimage.png\");
I solved it with framework. Added this line into the gradle:
implementation 'com.facebook.fresco:fresco:1.8.0'
Init singlton in application-class(or another main class in your app)
Fresco.initialize(applicationContext)
And in finish, use it.
XML:
Java:
avatar.setImageURI(user.getAvatarUrl())