create Media Storage Dir - Android Media

Android examples for Media:Media File

Description

create Media Storage Dir

Demo Code


//package com.java2s;

import java.io.File;

public class Main {
    private static void createMediaStorageDir(File mediaStorageDir) // Used to be 'private void ...'
    {// w  w w .  ja v a2 s . c o m
        if (!mediaStorageDir.exists()) {
            mediaStorageDir.mkdirs(); // Used to be 'mediaStorage.mkdirs();'
        }
    }
}

Related Tutorials