Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.Context;
import java.io.File;

public class Main {
    public static final String ACCOUNT_PREFERENCE = "rebate_accountInfo";

    public static void removeFileAccountInfo(Context ctx) {
        File accountFile = ctx.getFileStreamPath(ACCOUNT_PREFERENCE);
        if (accountFile != null && accountFile.exists()) {
            accountFile.delete();
        }
    }
}