getting the absolute path of a bitmap in the drawable or assets folder with android 4.2 -
i have checked previous questions , answers. answers submitted dating 2010-2012 don't seem work android 4.2. eg. file:///android_asset/myfile.png
not work.
i have string in source code includes html , css. want set bitmap located in drawable or assets folder (i have tried both folders , failed) background of 1 of div elements, hence why trying load in css.
div{ background-image:url(file:///android_asset/myfile.png);}
what work however, loading of external urls using above approach.
div{ background-image:url(http://www.somerandomwebsite.com/somepic.png);}
so assuming url incorrect when referencing files locally.
any advice great.
Comments
Post a Comment