Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #3060

Android: create drawable from path

From Dirk Bruere at NeoPax <dirk.bruere@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Android: create drawable from path
Date 2011-04-14 18:37 +0100
Organization Dirk Bruere at Neopax
Message-ID <90opnjFunsU1@mid.individual.net> (permalink)

Show all headers | View raw


For some reason d=null when creating a drawable from coverArtURLStr, 
which is the full http path to the resource on the LAN.
Anything obvious wrong? It's a path to a .png
[I can access the LAN OK, and Data.defaultCoverArt works fine]

public static void updateCoverArt(String coverArtURLStr)
     {
     	String coverArtURL = coverArtURLStr;
     	Drawable d;
     	
     	if (coverArtURL.equals(""))
     		d = Data.defaultCoverArt;
     	else    		
     		d = Drawable.createFromPath(coverArtURL);
     	
     	Data.coverArtIV.setImageDrawable(d);
     }


-- 
Dirk

http://www.neopax.com/technomage/ - My new book - Magick and Technology

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

Android: create drawable from path Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-14 18:37 +0100
  Re: Android: create drawable from path Lew <lew@lewscanon.com> - 2011-04-14 12:06 -0700
    Re: Android: create drawable from path Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-14 21:32 +0100
      Re: Android: create drawable from path Lew <noone@lewscanon.com> - 2011-04-14 18:32 -0400
        Re: Android: create drawable from path Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-15 00:52 +0100
          Re: Android: create drawable from path Patricia Shanahan <pats@acm.org> - 2011-04-14 17:28 -0700
            Re: Android: create drawable from path Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-15 02:20 +0100
              Re: Android: create drawable from path Patricia Shanahan <pats@acm.org> - 2011-04-14 21:20 -0700
                Re: Android: create drawable from path Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-15 11:38 +0100
                Re: Android: create drawable from path Patricia Shanahan <pats@acm.org> - 2011-04-15 09:25 -0700
                Re: Android: create drawable from path Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-05-04 18:29 +0100
                Re: Android: create drawable from path markspace <-@.> - 2011-05-04 11:24 -0700
                Re: Android: create drawable from path Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-04 20:27 +0200
                Re: Android: create drawable from path Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-05-05 09:39 +0100
          Re: Android: create drawable from path Lew <noone@lewscanon.com> - 2011-04-15 07:27 -0400

csiph-web