Is it a good idea to have a service just to register for intents?
<p>I have an application that listens for screen off, and user present intents.  Since you cant register to receive screen off intents from the manifest, I am registering them in a service.</p>

<p>Do I really need to have a whole service to ensure that I always get notified of when the screen shuts off, and the user unlocks the phone?  Seems really wasteful :-(</p>

<p>The code I use in my service:</p>

<pre><code>@Override
public void onCreate() {
    super.onCreate();
    Log.d(TAG, "Service created.");
    // register receiver that handles user unlock and screen off logic
    IntentFilter filter = new IntentFilter(Intent.ACTION_USER_PRESENT);
    filter.addAction(Intent.ACTION_SCREEN_OFF);
    BroadcastReceiver mReceiver = new ScreenReceiver();
    registerReceiver(mReceiver, filter); 
}
</code></pre>
