Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Dirk Bruere at NeoPax Newsgroups: comp.lang.java.programmer Subject: Android: create drawable from path Date: Thu, 14 Apr 2011 18:37:41 +0100 Organization: Dirk Bruere at Neopax Lines: 23 Message-ID: <90opnjFunsU1@mid.individual.net> Reply-To: dirk.bruere@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net w950nqus+iTZWeswpdwZ/wbpSAxvuCpUzJic3J+T93YYLWuv8t Cancel-Lock: sha1:/Iv1qvfaY/s1u20K0hVwOB2IXVg= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3060 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