title: Recyclerview Images Misplacing and disappear while scrolling up/down
body: <p>I'm retrieving Video thumbnails and displaying it in recycledview's imageview, problem that I'm facing with was Image's getting misplaced and disappeared while Scrolling Up/Down. When I'm using runnable class Recyclarview gets freezes.     </p>
  
  <pre><code>private static Bitmap retrieveVideoFrameFromVideo(String videoPath) {
  Bitmap bitmap = null;
  MediaMetadataRetriever mediaMetadataRetriever = null;
  try {
    mediaMetadataRetriever = new MediaMetadataRetriever();
    if (Build.VERSION.SDK_INT &gt;= 14) {
      mediaMetadataRetriever.setDataSource(videoPath, new HashMap&lt;String, String&gt;());
    } else {
      mediaMetadataRetriever.setDataSource(videoPath);
    }
    //   mediaMetadataRetriever.setDataSource(videoPath);
    bitmap = mediaMetadataRetriever.getFrameAtTime();
  } catch (Exception e) {
    e.printStackTrace();
  } finally {
    if (mediaMetadataRetriever != null) {
      mediaMetadataRetriever.release();
    }
  }
  return bitmap;
   }
  
   @Override void bindData(RecyclerView.ViewHolder holder, final MediaResponse  data) {
  final PhotoHolder photoHolder = (PhotoHolder) holder;
  photoHolder.mTitle.setText(BasicUtils.removeDoubleQuotes(data.getTitle()));
  photoHolder.mPostedBy.setText(data.getPostedby());
  photoHolder.upvote.setText(String.valueOf(data.getLikes()));
  photoHolder.date.setText(
          BasicUtils.parseDate(data.getDatetime(),  AppConstantsUtils.FROM_DATE_FORMAT,
                  AppConstantsUtils.TO_DATE_FORMAT));
  
  
  new BackTask(photoHolder.mMediaPic).execute(
         AppConstantsUtils.BASE_URL + data.getMedia());
  
  
  
  
   }
  
   private class BackTask extends AsyncTask&lt;String, Void, Bitmap&gt; {
    private ImageView imageView;
    BackTask(ImageView imageView) {
    this.imageView = imageView;
  }
  
     @Override protected Bitmap doInBackground(String... params) {
    // return retrieveVideoFrameFromVideo(params[0]);
    Log.d("URLHARRY",params[0]);
    // return ThumbnailUtils.createVideoThumbnail(params[0],            MediaStore.Video.Thumbnails.MINI_KIND );
    return retrieveVideoFrameFromVideo(params[0]);
  }
  
    @Override protected void onPostExecute(Bitmap bitmap) {
    super.onPostExecute(bitmap);
  
    if(bitmap!=null) {
      imageView.setImageBitmap(bitmap);
    }
    else{
      imageView.setImageBitmap(null);
      ToastUtils.showToast(context,"Hai");
    }
  
   }
  </code></pre>