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

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -