I have created a lockscreen for ics which will replace the default lockscreen. In my code I want to use getWindow() method to set the "android:hardwareAccelerated" true for increasing the efficiency.
I don't have any activity in the LockScreen.java. So I am not able to use activity.getWindow().
I tried with context.getWindow() and this.getWindow() also. But still it shows error. How to use getWindow() method to get the Window object?