Java tutorial
//package com.java2s; //License from project: Open Source License import android.os.Bundle; import android.support.annotation.NonNull; public class Main { private static boolean isShowing; private static int[] menuItems; public static void onRestoreInstanceState(@NonNull Bundle savedInstanceState) { isShowing = savedInstanceState.getBoolean("isShowing"); menuItems = savedInstanceState.getIntArray("drawables"); } }