Android new File(path) -
Why is not a file? What could possibly be the reason?
string current PhotoPath = "file: /storage/sdcard0/Pictures/someFileName.jpg"; ... file f = new file (current PhotoPath); If (f == null ||! F.isFile ()) {// this gets executed}
Did you try it?
string filepath = environment .getExternalStorage directory (). ToString () + "/ Pictures"; String filename = "someFileName.jpg"; File f = new file (file path, file name);
Comments
Post a Comment