-1
DrawableRequestBuilder drawableRequestBuilder = Glide.with(This
            .load(foodMenu.getImage()).into(viewHolder.imageView).fitCenter().animate(android.R.anim.fade_in);

    if (mMediaFragmentListener.getLocalVideoUri() != null) {
        MediaMetadataRetriever retriever = new MediaMetadataRetriever();
        Context context = getContext();
        retriever.setDataSource(context, mMediaFragmentListener.getLocalVideoUri());
        Bitmap frame = retriever.getFrameAtTime();
        drawableRequestBuilder.placeholder(new BitmapDrawable(context.getResources(), frame));
    }

    drawableRequestBuilder.into(mThumbnailView);

I used the above code for loading image like in instagram until it fully downloads from the server. But i dont why do i get error on mMediaFragmentListener and mThumbnailView as cannot resolve symbol. ANd i dont know why. I used it from the link here.

3
  • where are mMediaFragmentListener and mThumbnailView defined?
    – Will Evers
    Sep 8, 2016 at 17:30
  • You can see the link i provided for reference. BUt I have no idea where it is or should be defined @WillEvers Sep 8, 2016 at 17:31
  • you should not expect others to visit a random site to help you, there are hundred of other questions which are better detailed and therefore you are only making people skip your question because of being incomplete.
    – Shubhank
    Sep 8, 2016 at 17:33

1 Answer 1

0

Based on your response to my comment and the error you got. you did not define mMediaFragmentListener and mThumbnailView, therefore it can't resolve them.

1
  • how do i define them? Sep 9, 2016 at 3:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.