Search code examples
androidalarmmanagerandroid-4.4-kitkat

AlarmManager.setExact undefined


I'm upgrading one of my apps to work properly on Kit Kat, and it depends on an exactly timed alarm. Now the API changes page says that you must use a new call, setExact, to get this behavior back in 4.4. I'm attempting to use it but Eclipse is telling me that setExact is undefined, and indeed it doesn't appear in the auto-completion popup. Any thoughts?


Solution

  • Set your build target (Project > Properties > Android) to API Level 19 (or higher, if you're reading this answer sometime in the future when we have higher than 19).