Java tutorial
//package com.java2s; //License from project: Apache License import java.io.File; import java.io.IOException; public class Main { public static String SDCardRoot; public static File updateFile; public static File createFileInSDCard(String fileName, String dir) { File file = new File(SDCardRoot + dir + File.separator + fileName); try { file.createNewFile(); } catch (IOException e) { e.printStackTrace(); } updateFile = file; return file; } }