I tried to register the receiver in my service with the following code:
IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_ON);
ScreenReceiver SR =
Maybe you should check which intent is coming inside your onReceive() method:
if(intent.getAction().equals(Intent.ACTION_SCREEN_ON)
{
...
}
Also, have you tried putting a breakpoint in there?
Other advice, instead of using System.out.println use the API native log which would be in your case
Log.i("ScreenReceiver""RECEIVED");
And you can read the log in the logcat.