Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.Context;

public class Main {
    public static boolean BUILD_CONFIG_DEBUG = false;

    public static void init(Context context)
            throws ClassNotFoundException, NoSuchFieldException, IllegalAccessException {
        Class<?> buildConfigClass = Class.forName(context.getPackageName() + ".BuildConfig");
        BUILD_CONFIG_DEBUG = buildConfigClass.getField("DEBUG").getBoolean(null);
    }
}