How to call getWindow() outside an Activity in Android?
<p>I am trying to organize my code and move repetitive functions to a single class.
This line of code works fine inside a class that extends activity:</p>

<pre><code>getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
</code></pre>

<p>However not when I try to include it into an external class.</p>

<p>How do I call getWindow() from another class to apply it inside an Activity?</p>
