Hello I am trying to implement a wake lock for an application.
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "My Tag");
It seems to force close when defining the PowerManager
shown in the code above. Whats going wrong?