Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

import android.os.Environment;

public class Main {
    public static File getTempFile(String packageName) {
        final File path = new File(Environment.getExternalStorageDirectory(), packageName);
        if (!path.exists()) {
            path.mkdir();
        }
        return new File(path, "image.tmp");
    }
}