android - BitmapFactory.decodeFile() returns null -
i creating android app in copy image location x location y. after copying complete see picture in imageview. know images location, no matter try can't create bitmap object of it.
the line causing problems this:
bitmapfactory.decodefile(dir+s); dir = getcachedir().getabsolutepath()+"/images/";
s = file name (eg. 1275123123.jpg)
if create file object same path, , call f.isfile(), returns true.
opening image in either android or windows not problem.
didn't forget add sd card access permissions read_external_storage and/or write_external_storage ?
Comments
Post a Comment