Re: Android: create drawable from path
On Apr 14, 1:37 pm, Dirk Bruere at NeoPax <dirk.bru...@gmail.com>
For some reason d=null when creating a drawable from coverArtURLStr,
which is the full http path to the resource on the LAN.
Are you certain that value is what the method sees?
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;
Why the extra 'String' assignment?
What is the *actual* value of 'coverArtURLStr' at this point when you
have the problem?
d = Data.defaultCoverArt;
d = Drawable.createFromPath(coverArtURL=
The value of 'd' at this point when you have the problem is 'null',
When you say "I can access the LAN OK", that may or may not bear on
whether your program can access the LAN when you're running your
test. There's insufficient information in your post for us to know.
Since you have not provided an SSCCE there's little likelihood we can
debug your problem. On the face of it the'createFromPath()' method is
unable to access the actual URL string you're giving it, a datum you
have omitted from your problem statement.
Provide an SSCCE, please.