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 alwaysPlay2DefaultRender(Context context) {
        boolean flag;
        try {
            flag = context.getSharedPreferences(context.getPackageName(), 1).getBoolean("alway_play_to", false);
        } catch (Exception exception) {
            return false;
        }
        return flag;
    }
}