Back to project page PhotoNote.
The source code is released under:
MIT License
If you think the Android project PhotoNote listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package jp.gr.java_conf.neko_daisuki.photonote; /*from ww w. ja va2 s . c om*/ import java.io.File; import java.io.IOException; import android.os.Environment; public class Application { public static String getDataDirectory() { String storage = Environment.getExternalStorageDirectory().getPath(); return String.format("%s/.photonote", storage); } public static String getTemporaryDirectory() { return String.format("%s/tmp", getDataDirectory()); } public static void initialize() throws IOException { FileUtil.makeDirectories(new String[] { getTemporaryDirectory() }); String nomedia = String.format("%s/.nomedia", getDataDirectory()); new File(nomedia).createNewFile(); } }