application not running in sleep mode?
<p>my code is running fine when phone not in sleep mode</p>

<p>i used broadcast receiver to call application when date going to be changed
the code is as follow  </p>

<pre><code>public class DateReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d("facebook_message", "Date Changed 1");

        intent=new Intent(context, project.runningservice.SendPost.class);

        Calendar calendar = Calendar.getInstance();
        calendar.setTimeInMillis(System.currentTimeMillis());
        calendar.add(Calendar.HOUR_OF_DAY, 13);
        calendar.add(Calendar.MINUTE, 0);
        calendar.add(Calendar.SECOND, 0);
        AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);

        PendingIntent pi = PendingIntent.getService(context, 0, intent,PendingIntent.FLAG_UPDATE_CURRENT);

        try {
            am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),pi);
            Log.d("message", "Wait");
        } catch (Exception e) {
            // TODO: handle exception
        }
    }

}
</code></pre>

<p>and code in manifest file is as follow </p>

<pre><code>.
.
&lt;receiver android:name="project.datereceiver.DateReceiver"
                  android:process=":remote"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.DATE_CHANGED"/&gt;
            &lt;/intent-filter&gt;
        &lt;/receiver&gt;
.
.
&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;
.
.
</code></pre>

<p>and i want my service class run at 8am everyday when date changed
but not working correctly when phone in sleep mode.
please tell me where i am going wrong?</p>
