by forcery » Mon Jun 15, 2009 7:29 pm
I'm trying to use [font=Courier New]Drawable.createFromPath(String path)[/font] to create a [font=Courier New]Drawable[/font] object to basically wrap an image I have so I can pass it to other methods. Let's call the image [font=Courier New]foo.png[/font], and yes it is in [font=Courier New]res/drawable[/font]. My question then is if this is the setup, exactly what string ought I to pass to [font=Courier New]Drawable.createFromPath[/font] to reference [font=Courier New]foo.png[/font]? This may seem like a trivial question, but I've tried a multitude of intuitive ways of describing the file with a string, and [font=Courier New]createFromPath[/font] just keeps on returning [font=Courier New]null[/font], which is of no use. I haven't been able to find much documentation for this method, so any help anyone can offer would be greatly appreciated.