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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -