Example usage for android.view Window makeActive

List of usage examples for android.view Window makeActive

Introduction

In this page you can find the example usage for android.view Window makeActive.

Prototype

public final void makeActive() 

Source Link

Usage

From source file:android.app.Activity.java

/**
 * Called when activity resume is complete (after {@link #onResume} has
 * been called). Applications will generally not implement this method;
 * it is intended for system classes to do final setup after application
 * resume code has run.//from   w  ww. jav  a  2s.  c om
 * 
 * <p><em>Derived classes must call through to the super class's
 * implementation of this method.  If they do not, an exception will be
 * thrown.</em></p>
 * 
 * @see #onResume
 */
protected void onPostResume() {
    final Window win = getWindow();
    if (win != null)
        win.makeActive();
    if (mActionBar != null)
        mActionBar.setShowHideAnimationEnabled(true);
    mCalled = true;
}