Codewaves / YouTube-Thumbnail-View

Android view to display YouTube video thumbnail and information
MIT License
13 stars 3 forks source link

thumnail not loading #2

Open AmrutGhatage opened 6 years ago

AmrutGhatage commented 6 years ago

1) <meta-data android:name="com.codewaves.youtubethumbnailview.ApiKey" android:value="AIzaSyAYAQ03TSJUOtQofk6blvETrZbeMc" /> 2) Written Application class for ThumbnailLoader.initialize() 3) load the thumbnails bellow thumb2.loadThumbnail("https://www.youtube.com/watch?v=H7jtC8vjXw8", new ImageLoader() { @Override public Bitmap load(String url) throws IOException { return Picasso.with(context).load(url).get(); } });*/ 4)compile'com.codewaves.youtubethumbnailview:library:0.9.2' 5) public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); ThumbnailLoader.initialize(getApplicationContext()); }} 6)Manifest <application android:name=".MyApplication" . .../>

Still not loading thumbnail.. Is any thing missing?

Codewaves commented 6 years ago

Have you changed application class in manifest file?

AmrutGhatage commented 6 years ago

Yes all ready changed application class in manifest. Updated my question.

Codewaves commented 6 years ago

Are you running sample from the library or this is your own project?

AmrutGhatage commented 6 years ago

Running on my project.

On Wednesday, 13 September 2017 10:02 PM, Sergej Kravcenko <notifications@github.com> wrote:

Are you running sample from the library or this is your own project?— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

AmrutGhatage commented 6 years ago

Running on my own project

AmrutGhatage commented 6 years ago

not executing public Bitmap load(String url) throws IOException Plz provide solution. Thanks in advance.

Codewaves commented 6 years ago

Try to add loading listener and check for possible errors using loadThumbnail(String url, ThumbnailLoadingListener listener, ImageLoader imageLoader)