1. 程式人生 > >android下建立資料夾和修改其許可權的方法

android下建立資料夾和修改其許可權的方法

    /**     * File creation mode: the default mode, where the created file can only     * be accessed by the calling application (or all applications sharing the     * same user ID).     * @see #MODE_WORLD_READABLE     * @see #MODE_WORLD_WRITEABLE     */    public static final int MODE_PRIVATE = 0x0000;    /**     * File creation mode: allow all other applications to have read access     * to the created file.     * @see #MODE_PRIVATE     * @see #MODE_WORLD_WRITEABLE     */    public static final int MODE_WORLD_READABLE = 0x0001;    /**     * File creation mode: allow all other applications to have write access     * to the created file.     * @see #MODE_PRIVATE     * @see #MODE_WORLD_READABLE     */    public static final int MODE_WORLD_WRITEABLE = 0x0002;    /**     * File creation mode: for use with {@link #openFileOutput}, if the file     * already exists then write data to the end of the existing file     * instead of erasing it.     * @see #openFileOutput     */    public static final int MODE_APPEND = 0x8000;