java - Open File on Sdcard -
hey, want open .gif file on sdcard. used temp .gif in app , works need open raw file on sdcard , not letting me.... can help?
code works: http://pastebin.com/5klvag5c code im trying use: http://pastebin.com/q7t9qanq
thank you! :)
iirc, openrawresource()
needs resource id. doesn't work filepaths.
try replacing
= context.getresources().openrawresource(location);
with
= new bufferedinputstream( new fileinputstream(location) );
remember, you'll need sdcard permissions.
Comments
Post a Comment