You cannot register for those broadcasts in the manifest. They are designed to assist already-running applications and are registered via registerReceiver().
On Tue, Mar 29, 2011 at 3:13 AM, krishna <send2mess...@gmail.com> wrote: > import android.content.BroadcastReceiver; > import android.content.Context; > import android.content.Intent; > import android.util.Log; > import android.widget.Toast; > > public class intentRecever extends BroadcastReceiver { > > @Override > public void onReceive(Context context, Intent intent) { > Log.i(">>>>>>>>>>", intent.getAction()); > if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) > { > Log.i(">>>>>>>>>>", "My > Application.................Screen OFF"); > } else if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) > { > Log.i(">>>>>>>>>>", "My > Application.................Screen On"); > > } > > > > > } > > } > > > > > > it is not working when screen.....on....or off......help me ..thanks > krishna..... > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9.2 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en