Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.os.Environment;

public class Main {
    private static final String ALBUM_THUMB_FOLDER = "Android/data/com.android.providers.media/albumthumbs";

    private static String generateFileName() {
        // create a random file
        String name = String.valueOf(System.currentTimeMillis());
        return Environment.getExternalStorageDirectory() + "/" + ALBUM_THUMB_FOLDER + "/" + name;
    }
}