Getting state of screen/phone without waiting for an intent notification
===

I have some intent filters created that work fine but - I only get told what state the screen/phone is in after it changes.  How do I find the current state?  This is my filter -

    	receiver = new EventHandler();
        IntentFilter filter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);
        filter.addAction(Intent.ACTION_SCREEN_ON);
        filter.addAction(Intent.ACTION_SCREEN_OFF);
        filter.addAction(TelephonyManager.ACTION_PHONE_STATE_CHANGED); // for calls
        registerReceiver(receiver, filter);

I get an immediate notification for the battery state even though it hasn't changed.  Would be nice if the other intents fired a dummy notification like that.

Thanks.

Peter.