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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -