Stop Service with WAKE_LOCK
<p>I start a Service in Background with WakeLock and after work I stop the service and release the WakeLock. But I don't know the correct order. It works fine but I always get the Error:</p>

<pre><code>10-13 14:48:23.320: A/PowerManager(20951): WakeLock finalized while still held: AppService
</code></pre>

<p>Following is my code snippset:</p>

<pre><code>PowerManager pm = (PowerManager)getApplicationContext().getSystemService(Context.POWER_SERVICE);
WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);

wl.acquire();
</code></pre>

<p>After work done, stop everything, but in which order:</p>

<pre><code>stopForeground(true);
wl.release();                   
stopSelf(); 
</code></pre>
