Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.Activity;
import java.io.File;

public class Main {
    /**
     * Delete the database file in the current path
     *
     * @param context the current Activity context
     * @param path    the database file
     */
    private static void deleteDatabase(Activity context, String path) {
        File dbFile = new File(path);
        dbFile.delete();
    }
}