Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. final PlaylistItem item = getItem(position);
  2.             viewHolder.title.setText(item.title);
  3.             Log.e("ImageThubm",item.thumbnailUrl);
  4.  
  5.             // load the video thumbnail image
  6.             String urldisplay = item.thumbnailUrl;
  7.             Bitmap mIcon11 = null;
  8.             try {
  9.                 InputStream in = new java.net.URL(urldisplay).openStream();
  10.                 mIcon11 = BitmapFactory.decodeStream(in);
  11.                 viewHolder.thumbnail.setImageBitmap(mIcon11);
  12.             } catch (IOException e) {
  13.                 e.printStackTrace();
  14.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement