Broadcast Receiver doesn't receive anything after sometime
<p>I know this type of question is already asked but none of them has a working solution.
I have an broadcast receiver which I registered in a service which works fine for one hour or more but does't receive anything after sometime.For further information service that triggers the receiver is always running.</p>

<pre><code> IntentFilter filter = new IntentFilter();
    filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY);
    filter.addAction(Intent.ACTION_SCREEN_OFF);
    filter.addAction(Intent.ACTION_SCREEN_ON);
    this.mBroadcastReceiver = new MyBroadcastReceiver();
    registerReceiver(this.mBroadcastReceiver, filter);
</code></pre>

<p>Please Help.</p>