Skip to content

Adding code snippets for wake locks doc #582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

asolovay
Copy link
Contributor

@asolovay asolovay commented Aug 7, 2025

Starting with the code snippets to add and release a wake lock, we can add other snippets later.

Used by docs in:

https://developer.android.com/develop/background-work/background-tasks/awake/wakelock/

The actual snippets used on the DAC pages are bracketed by the [START ...] and [END ...] comments; everything else is just scaffolding to get the snippet to compile.

Starting with the code snippets to add and release a wake lock, we can add other snippets later.

Used by docs in:

https://developer.android.com/develop/background-work/background-tasks/awake/wakelock/
@asolovay asolovay self-assigned this Aug 7, 2025
@asolovay asolovay marked this pull request as ready for review August 7, 2025 21:39
Copy link

snippet-bot bot commented Aug 7, 2025

Here is the summary of changes.

You are about to add 4 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@asolovay asolovay requested a review from AliceYuan August 7, 2025 21:39
One of the region tags was misnamed (had the _kotlin suffix
instead of _java).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant