Here is how I schedule my alarm:

```
public void scheduleAlarm() {
        Intent intent = new Intent(context, AliveService_.class);
        PendingIntent serviceIntent = PendingIntent.getService(context, 0, intent,
                PendingIntent.FLAG_UPDATE_CURRENT);
        alarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME,
                AlarmManager.INTERVAL_HALF_DAY, AlarmManager.INTERVAL_HALF_DAY, serviceIntent);
    }

```

Then, using the `adb shell dumpsys alarm` command I see:

> 
> ELAPSED #4: Alarm{427c2a40 type 3 my.package.name}
>  type=3 **when=+4h35m36s353ms** repeatInterval=43200000 count=0
>  operation=PendingIntent{42a5d0d0: PendingIntentRecord{42bf84a0 my.package.name startService}}
> 
> 
> 

Saying the alarm to be triggered in `4h35m36s353ms` which is not actually a half of the day. Why?

More to say, the [docs](http://developer.android.com/reference/android/app/AlarmManager.html#setInexactRepeating%28int,%20long,%20long,%20android.app.PendingIntent%29) are saying:

> 
> Your alarm's first trigger will not be before the requested time
> 
> 
>