Code example for WindowManager

Methods: addView

0
                        LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
                        WindowManager.LayoutParams.TYPE_APPLICATION,
                        WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
                                | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
                        PixelFormat.TRANSLUCENT);
                mWindowManager.addView(mDialogText, lp);
            }}); 
    } 
     
    @Override 
    protected void onResume() { 
        super.onResume(); 
        mReady = true;
    } 
 
     
    @Override 
    protected void onPause() { 
        super.onPause(); 
        removeWindow(); 
        mReady = false;