AlarmManager works with periodically recording.