Example usage for android.os Handler subclass-usage

List of usage examples for android.os Handler subclass-usage

Introduction

In this page you can find the example usage for android.os Handler subclass-usage.

Usage

From source file org.uoyabause.android.YabauseHandler.java

        SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(Yabause.this);
        boolean lock_landscape = sharedPref.getBoolean("pref_landscape", false);
        if (lock_landscape == true) {
            setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        } else {
            setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);