Java tutorial
//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 int getRequestedZenMode(Bundle bundle) { return bundle.getInt(EXTRA_ZEN_MODE, ZEN_MODE_UNKNOWN); } }