Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.os.Bundle;

public class Main {
    private static final String EXTRA_ZEN_MODE = "zen_mode";
    private static final int ZEN_MODE_UNKNOWN = 0;

    public static boolean isValid(Bundle bundle) {
        return bundle.containsKey(EXTRA_ZEN_MODE)
                && bundle.getInt(EXTRA_ZEN_MODE, ZEN_MODE_UNKNOWN) != ZEN_MODE_UNKNOWN;
    }
}