/** * Load the poster image. * * @param url is the URL of the poster image. */ public void loadPoster(String url) { if (url == null) { Message message = obtainMessage(LOAD_DEFAULT_POSTER); sendMessage(message); return; } // Cancel any active poster download. if (mPosterDownloader != null) { mPosterDownloader.cancelAndReleaseQueue(); } // Load the poster asynchronously mPosterDownloader = new PosterDownloader(url, this); mPosterDownloader.start(); }