reading a specific file from sdcard in android -
how read specific file sdcard. have pushed file in sdcard through ddms , trying read though way give me exception. can tell me how point on file?
my code this.
string path = environment.getexternalstoragedirectory().getabsolutepath(); fileinputstream istream = new fileinputstream(path);
you trying read directory... need file! this... then, can read file want.
file dir = environment.getexternalstoragedirectory(); file yourfile = new file(dir, "path/to/the/file/inside/the/sdcard.ext");
Comments
Post a Comment