Wednesday, January 19, 2022

[FIXED] Display ImageView in android studio using path of images stored in server

Issue

I want to display ImageView in android studio by using path image stored in my server"WAMP" this folder is in (/WWW/Images)


Solution

Please try using Glide (https://github.com/bumptech/glide)

According to its documentation:

    // For a simple view:
@Override public void onCreate(Bundle savedInstanceState) {
  ...
  ImageView imageView = (ImageView) findViewById(R.id.my_image_view);

  GlideApp.with(this).load("http://your_url").into(imageView);
}


Answered By - Ronaldo Zoccaratto de Souza

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.