Open AmrutGhatage opened 6 years ago
Have you changed application class in manifest file?
Yes all ready changed application class in manifest. Updated my question.
Are you running sample from the library or this is your own project?
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.
Running on my own project
not executing public Bitmap load(String url) throws IOException Plz provide solution. Thanks in advance.
Try to add loading listener and check for possible errors using loadThumbnail(String url, ThumbnailLoadingListener listener, ImageLoader imageLoader)
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?