Hi,

I am trying to listen broadcast for Screen Off as follow

IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_SCREEN_OFF);
BroadcastReceiver mReceiver = new ScreenReceiver();
registerReceiver(mReceiver, filter);


But when screen locks somehow my ScreenReceiver is not getting a
braodcast. What could be wrong here?
I also tried declaring it in manifest, there too it didn't work.


Thanks in Advance

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to