# now-in-android

Published articles for now-in-android.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Now in Android #121

DevFeed: [Now in Android #121](<https://devfeed.tech/articles/now-in-android-121-22675.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/now-in-android-121-ddfe076c9884?source=rss----95b274b437c2---4>)

Author: Daniel Galpin

Published: 2025-10-20T22:09:39Z

Content type: article

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-medium.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [now-in-android](<https://devfeed.tech/topics/now-in-android.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [media3](<https://devfeed.tech/topics/media3.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [Bluetooth LE](<https://devfeed.tech/topics/bluetooth-le.md>), [Dark Mode](<https://devfeed.tech/topics/dark-mode.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [pdf](<https://devfeed.tech/topics/pdf.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [android](<https://devfeed.tech/tags/android.md>), [android-16](<https://devfeed.tech/tags/android-16.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [bluetooth-le](<https://devfeed.tech/tags/bluetooth-le.md>), [featured](<https://devfeed.tech/tags/featured.md>), [ios](<https://devfeed.tech/tags/ios.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [media](<https://devfeed.tech/tags/media.md>), [migration](<https://devfeed.tech/tags/migration.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>), [pdf](<https://devfeed.tech/tags/pdf.md>)

### AI overview

This edition of Now in Android covers Android 16 QPR2 Beta 1, Android Studio Narwhal's feature drop, Jetpack Compose 1.9, Media3 1.8, and related Android development updates. It highlights new platform APIs and changes involving accessibility, data migration between Android and iOS, PDF editing, media, Bluetooth LE Audio, and connectivity.

### Source excerpt

Compose 1.9, Media 3 1.8, QPR2 Beta 1, Narwhal Feature Drop, and more! Welcome to Now in Android, your ongoing guide to what's new and notable in the world of Android development. Read on for coverage of Android 16 QPR2 beta 1, the Android Studio Narwhal feature drop, Jetpack Compose 1.9, Media 3 1.8, Shape Morphing and Autofill in Compose, and much more. You can watch a video summary: https://medium.com/media/87a24ed0bca13b2d58bd3e59517b4273/href And we also have a podcast: https://medium.com/media/ef0552e532d340d1dd8ced3c6b6d85c5/href But this post has the most in-depth information, so read on! Android 16 QPR2 Beta 1 is here ✨ The first beta of Android 16 QPR2 is now available, the inaugural Android release with an Android minor SDK version. Minor SDK versions can include new APIs that extend platform features but cannot introduce targetSdkVersion gated behavior changes, minimizing the amount you need to test your apps against it. You can call new APIs by checking SDK_INT_FULL against the VERSION_CODES_FULL enumeration: if (Build.VERSION.SDK_INT_FULL >= Build.VERSION_CODES_FULL.BAKLAVA_1) { // Call new APIs from the Android 16 QPR2 release } VERSION_CODES_FULL cannot be used in uses-sdk manifest attributes. Here are some key updates from QPR2 Beta 1. UI, System Experience, and Accessibility: An expanded dark theme option intelligently inverts light apps for users preferring a dark appearance. Auto-themed app icons can be generated by the system if your app doesn't provide a monochrome layer. Interactive chooser sessions keep your app UI active while the sharesheet is open, using ChooserManager and ChooserSession. A new Data Transfer API enables more reliable and secure data migration between Android and iOS, requiring updates to your app's data extraction rules XML and BackupAgent implementation. The android.graphics.pdf package has expanded to support annotating and editing PDF documents via PdfRenderer.Page. ViewConfiguration values are now tailored to individua

## Now in Android #120

DevFeed: [Now in Android #120](<https://devfeed.tech/articles/now-in-android-120-22674.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/now-in-android-120-76eb908b9a8c?source=rss----95b274b437c2---4>)

Author: Daniel Galpin

Published: 2025-08-06T21:01:41Z

Content type: news

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-medium.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>), [Google Play](<https://devfeed.tech/topics/google-play.md>), [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Jetpack](<https://devfeed.tech/topics/jetpack.md>), [Game Development](<https://devfeed.tech/topics/game-development.md>), [android-app-bundle](<https://devfeed.tech/topics/android-app-bundle.md>), [ML Kit](<https://devfeed.tech/topics/ml-kit.md>), [Firebase](<https://devfeed.tech/topics/firebase.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [ai](<https://devfeed.tech/tags/ai.md>), [android](<https://devfeed.tech/tags/android.md>), [android-16](<https://devfeed.tech/tags/android-16.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [androidcanary](<https://devfeed.tech/tags/androidcanary.md>), [app](<https://devfeed.tech/tags/app.md>), [app-compatibility](<https://devfeed.tech/tags/app-compatibility.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [beta](<https://devfeed.tech/tags/beta.md>), [builds](<https://devfeed.tech/tags/builds.md>), [canary](<https://devfeed.tech/tags/canary.md>), [canary-release](<https://devfeed.tech/tags/canary-release.md>), [channel](<https://devfeed.tech/tags/channel.md>), [ci](<https://devfeed.tech/tags/ci.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [compose](<https://devfeed.tech/tags/compose.md>), [continuous](<https://devfeed.tech/tags/continuous.md>), [featured](<https://devfeed.tech/tags/featured.md>), [google-play](<https://devfeed.tech/tags/google-play.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>)

### AI overview

Android's Canary channel provides rolling OTA access to early platform builds for supported Pixel devices, SDK Manager, and Android Studio; builds may contain breaking changes, while Beta remains for launch-readiness testing. Android Studio's Agent Mode plans multi-file tasks from natural-language requests and uses IDE tools for edits, builds, and searches; developers review changes, and MCP integration initially supports stdio. The excerpt also covers the November 1, 2025 Google Play requirement for eligible NDK apps targeting Android 15+ to support 16 KB pages, and the migration path using AGP 8.5.1+/NDK r28+, runtime page-size queries, and emulator or device testing. Other notable changes include a new one-time-product model requiring Play Billing Library 8.0 and updated APIs; PGS v2 migration deadlines; and Wear OS's move to Watch Face Format. The issue also summarizes Compose, AI, Play subscriptions, PC games, and policy updates.

### Source excerpt

Canary Channel, Agentic AI in Android Studio, 16 KB Pages, Policy Changes, Compose Tips, Play Games Welcome to Now in Android, your ongoing guide to what's new and notable in the world of Android development. This edition features the Android platform Canary Channel, the first release of Agentic AI in Android Studio, Play updates including 16 KB Page Size requirements and other policy changes, new capabilities around one-time purchases, Play Games Services v2, and Google Play Games on PC, I/O recaps on AI and dev productivity, next gen Samsung devices running Android 16, Compose tips, and more. https://medium.com/media/2034f6e8beea3e321d4483d4ee77ebdf/hrefhttps://medium.com/media/0247cb404c27e0b8725bc258c35923bc/href Most of the content of this post is available in the form of a video or podcast, so feel free to watch or listen rather than read on. (Or do all three to help you remember! There won't be a quiz.) Evolving Android's early-access programs: Introducing the Canary channel 🐦 Android has introduced a new Canary release channel for its early-access programs, replacing the previous developer preview model. This channel provides earlier and more consistent access to in-development platform features throughout the year. The new Canary channel offers continuous, rolling over-the-air (OTA) updates for supported Pixel devices, addressing previous limitations where previews required manual flashing and the preview program ended once a platform version reached Beta, requiring manual flashing to enter it again for the next cycle. You can use the Canary channel to: Access new features and potential behavior changes in their earliest stages. Integrate builds into your Continuous Integration (CI) systems to identify app compatibility issues early. Download Canary SDKs through the SDK Manager and access builds via the Android Studio Canary channel for development and testing. The Canary channel operates in parallel with the existing Beta program. Canary builds are bleedin

## Now in Android #119

DevFeed: [Now in Android #119](<https://devfeed.tech/articles/now-in-android-119-22673.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/now-in-android-119-7b86ad2b3e81?source=rss----95b274b437c2---4>)

Author: Meghan Mehta

Published: 2025-07-09T17:02:38Z

Content type: article

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-medium.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Jetpack](<https://devfeed.tech/topics/jetpack.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [cameraX](<https://devfeed.tech/topics/camerax.md>), [now-in-android](<https://devfeed.tech/topics/now-in-android.md>), [media3](<https://devfeed.tech/topics/media3.md>), [Macrobenchmark](<https://devfeed.tech/topics/macrobenchmark.md>), [aosp](<https://devfeed.tech/topics/aosp.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [adaptive](<https://devfeed.tech/tags/adaptive.md>), [android](<https://devfeed.tech/tags/android.md>), [android-16](<https://devfeed.tech/tags/android-16.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [apis](<https://devfeed.tech/tags/apis.md>), [apps](<https://devfeed.tech/tags/apps.md>), [camera](<https://devfeed.tech/tags/camera.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [featured](<https://devfeed.tech/tags/featured.md>), [google-i-o](<https://devfeed.tech/tags/google-i-o.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>), [release](<https://devfeed.tech/tags/release.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Android 16 is available on supported Pixel devices, with source code published in the Android Open Source Project. Highlights include expanded camera and UltraHDR support, progress-style notifications, AGSL runtime color effects, and predictive back previews for three-button navigation. Apps targeting Android 16 must use edge-to-edge layouts; the release also changes system handling of orientation, resizability and aspect-ratio limits. At Google I/O 2025, developer updates included libraries for building adaptive apps across form factors, a redesigned UiAutomator API and other performance tools, plus CameraX, Media3Effects and Google Low-Light Boost for media experiences. The supplied text is an excerpt and does not provide details on the other topics named in the edition's introduction.

### Source excerpt

Android 16, Desktop Experiences, Adaptive Apps, Testing Videos, AndroidX and more! Welcome to Now in Android, your ongoing guide to what's new and notable in the world of Android development. In this edition we will cover Android 16, Desktop Experiences, Adaptive Apps, Testing Videos, AndroidX and more! https://medium.com/media/e5e1b0709e27441479904677742b5c3e/hrefhttps://medium.com/media/91590868757d125ca9ea41b7f1260065/href Most of the content of this post is available in the form of a video or podcast, so feel free to watch or listen rather than read on. (Or do all three to help you remember! There won't be a quiz.) Android 16 is here 🤖 Android 16 is released and available on supported Pixel devices, with new devices to follow. The source code is available at the Android Open Source Project. Key updates include: Enhanced camera and media APIs for pro users, with night mode scene detection, hybrid auto exposure and precise color temperature adjustments. Improved UltraHDR image support with HEIC encoding and an embedded photo picker. Apps targeting Android 16 can no longer opt-out of going edge-to-edge Changes to how the system manages orientation, resizability, and aspect ratio restrictions. System animations for back-to-home, cross-task, and cross-activity by default. In addition, this release extends predictive back navigation to three-button navigation, meaning that users long-pressing the back button will see a glimpse of the previous screen before navigating back. Progress style notifications which lets you create progress-centric notifications that can denote states and milestones in a user journey using points and segments. RuntimeColorFilter and RuntimeXfermode, allowing you to author complex effects like Threshold, Sepia, and Hue Saturation in AGSL and apply them to draw calls. Android 16 is here Top 3 updates for building excellent, adaptive apps at Google I/O '25 🤖 At Google I/O 2025, several advancements were announced for Android, including the rollou

## Now in Android #118 -- Google I/O 2025 Part II

DevFeed: [Now in Android #118 -- Google I/O 2025 Part II](<https://devfeed.tech/articles/now-in-android-118-google-i-o-2025-part-ii-22672.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/now-in-android-118-google-i-o-2025-part-ii-0176766c2061?source=rss----95b274b437c2---4>)

Author: Daniel Galpin

Published: 2025-06-18T17:01:42Z

Content type: news

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-medium.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [Android](<https://devfeed.tech/topics/android.md>), [cameraX](<https://devfeed.tech/topics/camerax.md>), [media3](<https://devfeed.tech/topics/media3.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [LiteRT](<https://devfeed.tech/topics/litert.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [accessibility](<https://devfeed.tech/tags/accessibility.md>), [android](<https://devfeed.tech/tags/android.md>), [android-development-tools](<https://devfeed.tech/tags/android-development-tools.md>), [camera](<https://devfeed.tech/tags/camera.md>), [complex](<https://devfeed.tech/tags/complex.md>), [compose](<https://devfeed.tech/tags/compose.md>), [featured](<https://devfeed.tech/tags/featured.md>), [gemini](<https://devfeed.tech/tags/gemini.md>), [google-i-o](<https://devfeed.tech/tags/google-i-o.md>), [google-io-2025](<https://devfeed.tech/tags/google-io-2025.md>), [google-maps](<https://devfeed.tech/tags/google-maps.md>), [google-play](<https://devfeed.tech/tags/google-play.md>), [high-performance](<https://devfeed.tech/tags/high-performance.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [kmp](<https://devfeed.tech/tags/kmp.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [maps](<https://devfeed.tech/tags/maps.md>), [media](<https://devfeed.tech/tags/media.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>)

### AI overview

The excerpt highlights Google I/O 2025 Android updates, with specific Compose additions: autofill, auto-sizing text, visibility tracking, animated layout bounds, and accessibility checks in tests. Navigation 3 is a new Compose-first navigation library in alpha, intended to give developers more control over complex flows. Compose support for CameraX and Media3 aims to simplify adding camera capture and video playback to UIs. Android Studio Narwhal canary adds resizable previews, improved preview navigation, and Gemini-assisted preview generation and UI transformation. The excerpt also points to sessions on Compose text input, accessibility, and video workflows using CameraX and Media3 with LiteRT; it does not provide the details or outcomes of those sessions.

### Source excerpt

Now in Android #118 -- Google I/O 2025 Part IICompose, Camera and Media, Accessibility ,KMP, Tools, Maps, AndroidX, Google Home, integrating the web, Google Play, and more Welcome to part two of a special Google I/O 2025 edition of Now in Android, your ongoing guide to what's new and notable in Android development. This second edition covers the latest from Jetpack Compose, Camera and Media, Accessibility ,Kotlin Multiplatform, Android development tools, Google Maps, AndroidX, Google Home with Gemini, integrating web functionality, Google Play, and more. Part one included coverage of Material Expressive, watches, cars, tablets, laptops, connected displays, the latest in adaptive app development, XR development, taking advantage of on-device and cloud based AI, and Android 16. https://medium.com/media/ac4b380d9ad7f761525349fa12cc14a0/href Now in Android: 118 - What's new in Android development at Google I/O 2025 (part 2) Most of the content of this post is available in the form of a video or podcast, so feel free to watch or listen rather than read on. (Or do all three to help you remember! There won't be a quiz.) Jetpack Compose 💻 Jetpack Compose introduced new features, including autofill support, auto-sizing text, visibility tracking, the animate bounds modifier, and accessibility checks in tests, and that's just the beginning of what's new: animateBounds provides automatic animations of a Composable's position and size within a LookaheadScope, while visibility tracking is used when you need high-performance information on a composable's position in its root container, screen, or window. For more on autofill, autosize, and the new state based TextField, check out the "Mastering text input in Compose" talk. https://medium.com/media/9d6173df81f8e842f25b25f0a406c606/href Navigation 3 is a brand new, Compose-first navigation library, now in alpha that's designed to give you greater control while simplifying building complex navigation flows. Announcing Jetpack Navigati

## Now in Android #117 -- Google I/O 2025 Part I

DevFeed: [Now in Android #117 -- Google I/O 2025 Part I](<https://devfeed.tech/articles/now-in-android-117-google-i-o-2025-part-i-22671.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/now-in-android-117-google-i-o-2025-part-i-fd20a09a2299?source=rss----95b274b437c2---4>)

Author: Daniel Galpin

Published: 2025-06-05T17:28:56Z

Content type: news

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-medium.md>)

Topics: [Material Design](<https://devfeed.tech/topics/material-design.md>), [Android](<https://devfeed.tech/topics/android.md>), [Design system](<https://devfeed.tech/topics/design-system.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [User Experience](<https://devfeed.tech/topics/user-experience.md>), [Large Screen](<https://devfeed.tech/topics/large-screen.md>), [3D](<https://devfeed.tech/topics/3d.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [adaptive](<https://devfeed.tech/tags/adaptive.md>), [ai](<https://devfeed.tech/tags/ai.md>), [android](<https://devfeed.tech/tags/android.md>), [android-16](<https://devfeed.tech/tags/android-16.md>), [android-xr](<https://devfeed.tech/tags/android-xr.md>), [animations](<https://devfeed.tech/tags/animations.md>), [cars](<https://devfeed.tech/tags/cars.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [colors](<https://devfeed.tech/tags/colors.md>), [design](<https://devfeed.tech/tags/design.md>), [design-patterns](<https://devfeed.tech/tags/design-patterns.md>), [development](<https://devfeed.tech/tags/development.md>), [displays](<https://devfeed.tech/tags/displays.md>), [featured](<https://devfeed.tech/tags/featured.md>), [gemini](<https://devfeed.tech/tags/gemini.md>), [google-i-o](<https://devfeed.tech/tags/google-i-o.md>), [google-io-2025](<https://devfeed.tech/tags/google-io-2025.md>), [guidelines](<https://devfeed.tech/tags/guidelines.md>), [i-o](<https://devfeed.tech/tags/i-o.md>), [laptops](<https://devfeed.tech/tags/laptops.md>), [material](<https://devfeed.tech/tags/material.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>)

### AI overview

Google I/O 2025 introduced Material 3 Expressive, with a new motion physics system, typography for variable and static fonts, morphing shapes, more colors, and expanded configuration options across 15 new or updated components. The Q3 Android 16 beta includes much of this visual polish and is available for supported Pixel devices. Google also released the Wear OS 6 developer preview, which lets developers test apps in its emulator. The excerpt additionally points to design guidance for accessibility and multiple Android form factors, but does not provide the rest of the post's coverage.

### Source excerpt

Now in Android #117 -- Google I/O 2025 Part IDesign, Watches, Cars, Tablets, Adaptive Apps, Android XR, Gemini, and Android 16 Welcome to part one of a special two-part Google I/O 2025 edition of Now in Android. This first post will cover a bunch of changes related to the latest evolution of Material Design, watches, cars, tablets, laptops, and connected displays, the latest in adaptive app development, XR development, how to take advantage of on-device and cloud based AI, and Android 16. https://medium.com/media/f4779f9096112bf2cfff21aec7eeb199/hrefhttps://medium.com/media/d23b17afda66e01541bb4c84ecea4974/href Most of the content of this post is available in the form of a video or podcast, so feel free to watch or listen rather than read on. (Or do all three to help you remember! There won't be a quiz.) The Android Show: I/O Edition -- what Android devs need to know! 🤖 We began the I/O season with a special edition of The Android Show, where we introduced the latest evolution of Material Design, Material 3 Expressive. https://medium.com/media/815112dc9a5b3a849cced5343837f4e6/href The Android Show: I/O Edition - what Android devs need to know! https://medium.com/media/906cc031e2cbb814b2a4964db156a2cc/href Material 3 Expressive adds a new motion physics system, new type styles for variable and static fonts, an expanded shape library with morphing animations, and an expanded range of colors. Fifteen new or updated components now feature more configuration capabilities, shape options, emphasized text, and other expressive updates. The Material team has a post where you can read all about it, including design tactics. M3 Expressive: Engaging UX Design At I/O Build next-level UX with Material 3 Expressive covered how to use the new expressive design patterns; breaking down the research, explaining new guidelines, and including new design files + code. https://medium.com/media/4ce31edc8b396f71acc6192d1ac6160f/href The first beta of the Q3 Android 16 update contains much of

## Stressing the JVM GC on Android

DevFeed: [Stressing the JVM GC on Android](<https://devfeed.tech/articles/stressing-the-jvm-gc-on-android-28537.md>)

Original publisher: [Read original article](<https://www.amanjeet.me/stressing-the-jvm-gc-on-android/>)

Author: Amanjeet Singh Gurtatta

Published: 2024-03-10T08:49:55Z

Content type: tutorial

Language: en

Sources: [Amanjeet Singh](<https://devfeed.tech/sources/amanjeet-singh.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Java](<https://devfeed.tech/topics/java.md>), [Code](<https://devfeed.tech/topics/code.md>), [now-in-android](<https://devfeed.tech/topics/now-in-android.md>)

Tags: [adb](<https://devfeed.tech/tags/adb.md>), [android](<https://devfeed.tech/tags/android.md>), [android-vitals](<https://devfeed.tech/tags/android-vitals.md>), [anr](<https://devfeed.tech/tags/anr.md>), [fragmentation](<https://devfeed.tech/tags/fragmentation.md>), [gc](<https://devfeed.tech/tags/gc.md>), [java](<https://devfeed.tech/tags/java.md>), [leak](<https://devfeed.tech/tags/leak.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-leak](<https://devfeed.tech/tags/memory-leak.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [mobile-performance](<https://devfeed.tech/tags/mobile-performance.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>), [outofmemory](<https://devfeed.tech/tags/outofmemory.md>), [performance](<https://devfeed.tech/tags/performance.md>), [stress](<https://devfeed.tech/tags/stress.md>), [stresstest](<https://devfeed.tech/tags/stresstest.md>), [writing](<https://devfeed.tech/tags/writing.md>)

### AI overview

This tutorial describes GCStress, a Java application that deliberately creates garbage-collection pressure through repeated random byte-array allocations and cache removals. It explains how to integrate it into Google's Now in Android app, trigger it with an Android broadcast and adb, and observe effects such as skipped UI frames, possible ANRs, and potential out-of-memory errors.

### Source excerpt

This post talks about a way to stress Java garbage collector.

## WhileSubscribed(5000)

DevFeed: [WhileSubscribed(5000)](<https://devfeed.tech/articles/whilesubscribed-5000-25635.md>)

Original publisher: [Read original article](<https://blog.p-y.wtf/whilesubscribed5000>)

Author: Pierre-Yves Ricau

Published: 2022-08-30T23:01:56Z

Content type: article

Language: en

Sources: [Py's blog](<https://devfeed.tech/sources/py-s-blog.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [leakcanary](<https://devfeed.tech/topics/leakcanary.md>), [now-in-android](<https://devfeed.tech/topics/now-in-android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-apps](<https://devfeed.tech/tags/android-apps.md>), [android-engineer](<https://devfeed.tech/tags/android-engineer.md>), [app](<https://devfeed.tech/tags/app.md>), [block](<https://devfeed.tech/tags/block.md>), [compose](<https://devfeed.tech/tags/compose.md>), [config](<https://devfeed.tech/tags/config.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [coroutine](<https://devfeed.tech/tags/coroutine.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [delay](<https://devfeed.tech/tags/delay.md>), [flow](<https://devfeed.tech/tags/flow.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [gabor-varadi](<https://devfeed.tech/tags/gabor-varadi.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [leakcanary](<https://devfeed.tech/tags/leakcanary.md>), [leaks](<https://devfeed.tech/tags/leaks.md>), [lifecycle](<https://devfeed.tech/tags/lifecycle.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>), [operators](<https://devfeed.tech/tags/operators.md>), [scope](<https://devfeed.tech/tags/scope.md>), [stream](<https://devfeed.tech/tags/stream.md>), [twitter](<https://devfeed.tech/tags/twitter.md>)

### AI overview

The 5-second WhileSubscribed timeout keeps an upstream flow active briefly after its last collector disappears, which can avoid restarting it during an activity configuration change. Without the delay, rotation can drop the subscription count to zero, stop sharing, then restart the upstream flow on resume; the cached state value is reused. The author objects to treating this delay as a default for every ViewModel flow. Eagerly starting sharing avoids that restart, but keeps the upstream flow active for the ViewModel's lifetime, typically tied to an Activity or Fragment. The excerpt does not describe further limitations or alternatives.

### Source excerpt

👋 Hi, this is P.Y., I work as an Android Engineer at Block. I know nothing about Compose so please let me know if I messed up on Twitter! I've been hacking on a new LeakCanary standalone app to visua

## Consuming flows safely in Jetpack Compose

DevFeed: [Consuming flows safely in Jetpack Compose](<https://devfeed.tech/articles/consuming-flows-safely-in-jetpack-compose-35672.md>)

Original publisher: [Read original article](<https://manuelvivo.dev/consuming-flows-compose>)

Author: Manuel Vivo

Published: 2022-08-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Manuel Vivo .dev](<https://devfeed.tech/sources/manuel-vivo-dev.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [API](<https://devfeed.tech/topics/api.md>), [Android](<https://devfeed.tech/topics/android.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [function](<https://devfeed.tech/topics/function.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>), [now-in-android](<https://devfeed.tech/topics/now-in-android.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [boilerplate](<https://devfeed.tech/tags/boilerplate.md>), [compose](<https://devfeed.tech/tags/compose.md>), [flow](<https://devfeed.tech/tags/flow.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [lifecycle](<https://devfeed.tech/tags/lifecycle.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>), [stateflow](<https://devfeed.tech/tags/stateflow.md>), [ui](<https://devfeed.tech/tags/ui.md>), [viewmodel](<https://devfeed.tech/tags/viewmodel.md>)

### AI overview

This tutorial explains how to use collectAsStateWithLifecycle in Jetpack Compose to collect Flow and StateFlow values from UI code in a lifecycle-aware way. It describes how collection follows the app lifecycle, stops by default when the app is in the background, and helps avoid unnecessary resource usage. The API is identified as alpha and requires opting in to its annotation.

### Source excerpt

Use the collectAsStateWithLifecycle API to collect flows in a lifecycle-aware manner from your UI.