get youtube Video Thumbnail - Android Graphics

Android examples for Graphics:Bitmap Thumbnail

Description

get youtube Video Thumbnail

Demo Code


//package com.java2s;
import android.util.Log;

public class Main {
    private static final String TAG = "YoutubeHelper";

    public static String getVideoThumbnail(String videoId) {
        Log.d(TAG, "Getting thumbnail for video : " + videoId);
        return "http://img.youtube.com/vi/" + videoId + "/0.jpg";
    }/*from www  .j  a  v  a2  s. com*/
}

Related Tutorials