Monday, May 5, 2014

android textView loaded network tag pictures, ImageGetter in getDrawable (Str) str is null


test = " http://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/NGC6543.jpg/250px-NGC6543.jpg Cat's Eye Nebula (English: Cat's Eye Nebula, NGC 6543, Caldwell 6) is located in the constellation Draco is a planetary nebula, which is known nebula in one of the most complex, high-resolution images of the Hubble Space Telescope observations reveal which particular kink, spray curved structural columns, bubbles and fibrous. http://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/NGC6543.jpg/250px-NGC6543.jpg it Center is a bright, hot stars, about 1000 years ago the star lost its outer structure, resulting in a Cat's Eye Nebula.
http://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/M27_-_Dumbbell_Nebula.jpg/220px-M27_-_Dumbbell_Nebula.jpg ";
I want to show the textView in android text and images in the network using this method Html.fromHtml (test, new URLImageGetter (), null);
class URLImageGetter implements ImageGetter {
@ Override
public Drawable getDrawable (String paramString) {
final URLDrawable urlDrawable = new URLDrawable (context);
ImageGetterAsyncTask getterTask = new ImageGetterAsyncTask (urlDrawable);
getterTask.execute ( paramString ); / / debug to find out why paramString been empty
return urlDrawable;
}
}
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Could it be that is the way I call it wrong or my text data will not load images in there but it's not inside the url String value is Why
Reply:
reference to this bar.

No comments:

Post a Comment