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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -