Acess getWindow method in simple java class
<p>I am using method <code>Window wingdow = getWindow()</code> in my <code>Activity</code> class. Now i want to use this method in simple java class but it get errors <code>not resolve method</code>. I also use <code>contex</code>t but it also get erros. How can we access it in simple java class.</p>