Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.File;

import android.app.Activity;

import android.content.Context;

public class Main {
    public static File getCacheDir(Activity act) {

        return act.getDir("cacheFile",
                Context.MODE_PRIVATE | Context.MODE_WORLD_READABLE | Context.MODE_WORLD_WRITEABLE);

    }
}