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 [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