---
title: "Discussion on \"Let the Alarm Call You Back: Retiring Keepalive Wake Locks with OnAlarmListener on Android 17\" | Hashnode"
description: "Discussion on \"Let the Alarm Call You Back: Retiring Keepalive Wake Locks with OnAlarmListener on Android 17\". Android 17 adds a listener-based setExactAndAllowWhileIdle. Learn how it cuts wake locks, its process-death limits, Kotlin migration and pitfalls."
url: "https://hashnode.com/posts/let-the-alarm-call-you-back-retiring-keepalive-wake-locks-with-onalarmlistener-on-android-17/6afc6030e523f384e7a6ca79"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Let the Alarm Call You Back: Retiring Keepalive Wake Locks with OnAlarmListener on Android 17](https://android-expert.hashnode.dev/let-the-alarm-call-you-back-retiring-keepalive-wake-locks-with-onalarmlistener-on-android-17?utm_source=hashnode&utm_medium=feed)

Android 17 adds a listener-based setExactAndAllowWhileIdle. Learn how it cuts wake locks, its process-death limits, Kotlin migration and pitfalls.

4d ago · 13 min read · android-expert.hashnode.dev  
Read the article

-   [#android-development](https://hashnode.com/tag/android-development)
-   [#android-17](https://hashnode.com/tag/android-17)
-   [#alarmmanager](https://hashnode.com/tag/alarmmanager)
-   [#wake-locks](https://hashnode.com/tag/wake-locks)
-   [#battery-optimization](https://hashnode.com/tag/battery-optimization)

## Written by

[Android Expert](https://hashnode.com/@android-expert)

@android-expert · Chennai, India

  
[View profile](https://hashnode.com/@android-expert)

Android Expert· Kotlin, Jetpack Compose & production pitfalls

Android Engineer &amp; Kotlin Advocate. 🚀 Deep dives into Jetpack Compose, Coroutines, and Clean Architecture. Turning complex code into scalable solutions. 🛠️✨

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
