Public classPathManager {//Customizing the camera storage path (picture trimmed to create 640*640) Public Staticfile Getcropphotopath () {file Photofile=NewFile (Getcropphotodir (), System.currenttimemillis () + ". jpg"); returnPhotofile; } //folder where the cropped picture is stored Public StaticFile Getcropphotodir () {String path=environment.getexternalstoragedirectory ()+ "/etourypic"; File File=NewFile (path); if(!file.exists ()) {File.mkdirs (); } returnfile; } //save a picture of a completed page Public Staticfile Getvideopath () {file Videofile=NewFile (Getvideodir (), System.currenttimemillis () + ". 3gp"); returnVideofile; } Public StaticFile Getvideodir () {String path=environment.getexternalstoragedirectory ()+ "/etouryvideo"; File File=NewFile (path); if(!file.exists ()) {File.mkdirs (); } returnfile; }}
Save path for files, pictures, videos