AndroidX Activity

Frameworks & LibrariesAI extracted

AndroidX's ComponentActivity and its Compose and Kotlin extensions: result APIs, back handling, edge-to-edge.

Latest 1.14.0-alpha03 · by GoogleWebsiteRSS

Release activity

Release activity — 11 releases across 11 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026No releases on Nov 8, 2026No releases on Nov 15, 2026
MondayNo releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026No releases on Nov 9, 2026No releases on Nov 16, 2026
TuesdayNo releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026No releases on Nov 10, 2026No releases on Nov 17, 2026
WednesdayNo releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 20261 release on Aug 26, 2026No releases on Sep 2, 20261 release on Sep 9, 2026No releases on Sep 16, 20261 release on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026No releases on Nov 11, 2026No releases on Nov 18, 2026
ThursdayNo releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026No releases on Nov 12, 2026No releases on Nov 19, 2026
FridayNo releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026No releases on Nov 13, 2026
SaturdayNo releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026No releases on Nov 14, 2026

11 releases in the last year

Branches

1.14
1.14.0-alpha03
1.13
1.13.0
1.12
1.12.4

Changelog

Filter releases by branch
86 of 86 releases

1.14.0-alpha03

Latest
Added 1
  • ComponentActivity's new defaultViewModelArgs now supports direct boot configuration
Changed 1
  • androidx.lifecycle:lifecycle-runtime dependency updated to 2.10.0, required for bundled lifecycle runtime lint checks to run with AGP 9.5.0-alpha04 or later
Deprecated 2
  • EdgeToEdge#enable() is deprecated; use WindowCompat#enableEdgeToEdge(Window) instead
  • Material 2 text field overloads that accept value and onValueChange parameters are deprecated; migrate to the overload that uses TextFieldState to hoist its state

From AndroidX Activity

Use WindowCompat#enableEdgeToEdge(Window) instead of EdgeToEdge#enable() ( Ibff3e) Material 2 text field overloads that accept value, onValueChange parameters are deprecated. Please migrate to the overload that uses TextFieldState to hoist its state. ( I6b841, b/556234973) androidx.lifecycle:lifecycle-runtime dependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. ( I99bfd, b/556807521) ComponentActivity new defaultViewModelArgs now supports direct boot configuration as well. ( I10a08)

View originalPermalink
How 1.14.0-alpha03 went

1.14.0-alpha02

Changed 1
  • compileSdk for Compose libraries updated to 37.1, which will require transitively updating compileSdk for all apps and libraries using Compose
View originalRead the notes
How 1.14.0-alpha02 went

1.14.0-alpha01

Added 3
  • Developers of exported activities can override defaultViewModelArgs to explicitly provide validated intent extras
  • Activity provides NavigationEventDispatcherOwner and OnBackPressedDispatcherOwner factory functions for creating instances of the respective components
  • OnBackPressedDispatcher provides an asNavigationEventDispatcher extension to convert it to a NavigationEventDispatcher
Changed 1
  • Intent extras are no longer automatically added to defaultViewModelCreationExtras for exported activities
View originalRead the notes
How 1.14.0-alpha01 went

1.13.0

Added 1
  • ComponentActivity now implements the OnPictureInPictureUiStateChangedProvider interface, allowing it to integrate with the new core:core-pip artifact to receive picture-in-picture UI state change events.
Fixed 1
  • EdgeToEdge is now re-invoked on configuration changes to ensure the system status bar color is properly updated.
View originalRead the notes
How 1.13.0 went

1.13.0-rc01

Fixed 1
  • The Photo and Video ActivityResultContracts now launch correctly on devices with the latest URI security fixes
View originalRead the notes
How 1.13.0-rc01 went

1.12.4

Fixed 1
  • The Photo and Video ActivityResultContracts now correctly launch on devices with the latest URI security fixes
View originalRead the notes
How 1.12.4 went

1.13.0-alpha01

Added 1
  • ComponentActivity implements the OnPictureInPictureUiStateChangedProvider interface so it can integrate with the new core:core-pip artifact and receive picture-in-picture UI state change events
Changed 1
  • EdgeToEdge is re-invoked on configuration changes so the system status bar color is properly updated
Fixed 1
  • Manually setting isEnabled on a lifecycle-aware OnBackPressedCallback no longer overrides the Lifecycle state, which could cause crashes
View originalRead the notes
How 1.13.0-alpha01 went

1.12.2

Fixed 1
  • Fixed an issue where manually setting isEnabled on a lifecycle-aware OnBackPressedCallback would override the Lifecycle state, potentially causing crashes.
View originalRead the notes
How 1.12.2 went

1.12.1

Activity now depends on Navigation Event 1.0.1

View originalRead the notes
How 1.12.1 went

1.12.0

Added 1
  • NavigationEventDispatcher support in ComponentActivity and ComponentDialog
Changed 2
  • The Activity library now depends on the new NavigationEvent library
  • The OnBackPressed APIs are rewritten on top of the NavigationEvent APIs while remaining backward compatible with the previous library
View originalRead the notes
How 1.12.0 went

1.12.0-rc01

Fixed 1
  • Fixed runtime failures for BackHandler and PredictiveBackHandler in apps using custom Activity classes, which now safely fall back to LocalOnBackPressedDispatcherOwner while preserving dispatch order in apps that support NavigationEventDispatcherOwner
View originalRead the notes
How 1.12.0-rc01 went

1.12.0-beta01

Added 1
  • Introduce the experimental ActivityFlags API for managing runtime behavior changes and migrations
Changed 2
  • Enable stable ordering for OnBackPressedCallback via the first flag, ActivityFlags.isOnBackPressedLifecycleOrderMaintained, making back navigation more predictable across lifecycle changes
  • Update lifecycle dependencies to 2.9.4
View originalRead the notes
How 1.12.0-beta01 went

1.11.0

Added 1
  • Added MediaCapabilities API to PickVisualMediaRequest to let applications specify its media capabilities, such as supported HDR Types.
Changed 1
  • Activity is now compiled with API 36.
View originalRead the notes
How 1.11.0 went

1.12.0-alpha07

Changed 1
  • Activity now depends on Navigation Event 1.0.0-alpha07.
Fixed 1
  • Fixed an issue with EdgeToEdge on API 35 in which invisible views caused unexpected measurement insets.
View originalRead the notes
How 1.12.0-alpha07 went

1.12.0-alpha06

Changed 4
  • The default minSdk for AndroidX has been moved from API 21 to API 23
  • Updated KDocs for PredictiveBackHandler to call out a known timing issue where it may process a gesture in the same frame it is disabled
  • Updated KDocs for BackHandler and PredictiveBackHandler to explicitly state the 'last composed wins' behavior in addition to recommending unconditional composition with the enabled flag
  • Activity now depends on Navigation Event 1.0.0-alpha06
View originalRead the notes
How 1.12.0-alpha06 went

1.12.0-alpha03

Changed 1
  • OnBackPressedDispatcher and NavigationEventDispatcher are now both initialized lazily in ComponentActivity.
Fixed 1
  • OnBackPressedDispatcher now only notifies the latest dispatcher an OnBackPressedCallback was added to of its enabled state.
View originalRead the notes
How 1.12.0-alpha03 went

1.12.0-alpha02

Fixed 1
  • Fixed a ConcurrentModificationException that could occur when NavigationEventCallback.remove() was called due to simultaneously modifying the internal list of closeables
View originalRead the notes
How 1.12.0-alpha02 went

1.12.0-alpha01

Added 3
  • ComponentActivity and ComponentDialog are integrated with NavigationEvent 1.0.0-alpha01 via the NavigationEventDispatcherOwner API
  • A NavigationEventDispatcher can be retrieved from ComponentActivity via the navigationEventDispatcher field
  • NavigationEventDispatcher and NavigationEventCallback are the recommended APIs going forward
Changed 1
  • OnBackPressedDispatcher is re-written on top of the NavigationEvent library, and existing usages continue to work correctly
View originalRead the notes
How 1.12.0-alpha01 went

1.11.0-alpha02

Added 1
  • Integrated EDGE_NONE and frameTimeMillis from Android 16 Beta03 into BackEventCompat provided by OnBackPressedCallback's handleOnBackStarted and handleOnBackProgressed functions
Changed 1
  • Activity is now compiled with API 36
View originalRead the notes
How 1.11.0-alpha02 went

1.11.0-alpha01

Added 1
  • Added MediaCapabilities API to PickVisualMediaRequest to let applications specify its media capabilities, such as supported HDR Types.
View originalRead the notes
How 1.11.0-alpha01 went

1.10.1

Fixed 1
  • ViewTree OnBackPressedDispatcherOwners and FullyDrawnReporterOwners can now be resolved through disjoint parents of a view, such as a ViewOverlay.
View originalRead the notes
How 1.10.1 went

1.10.0

Added 3
  • PhotoPicker now allows picking images in order
  • PhotoPicker now allows choosing which tab (either albums or images) should be initially visible
  • New LocalActivity composition local that provides the Activity for the current scope
Changed 2
  • The PickVisualMedia and PickMultipleVisualMedia Activity Result contracts no longer directly delegate to Google Play services when the system Photo picker is not available
  • The PickVisualMedia and PickMultipleVisualMedia Activity Result contracts use the public ACTION_SYSTEM_FALLBACK_PICK_IMAGES action and related extras as a fallback to provide a consistent Photo Picker experience to OEMs and system apps
View originalRead the notes
How 1.10.0 went

1.10.0-rc01

Fixed 1
  • Changing the enabled state while the PredictiveBackHandler is active no longer short-circuits the callback; the current callback now finishes regardless of enabled status changes
View originalRead the notes
How 1.10.0-rc01 went

1.10.0-beta01

androidx.activity:activity:1.10.0-beta01, androidx.activity:activity-compose:1.10.0-beta01, and androidx.activity:activity-ktx:1.10.0-beta01 are released with no changes since the last alpha.

View originalRead the notes
How 1.10.0-beta01 went

1.10.0-alpha03

Added 2
  • Added a new LocalActivity composition local that provides the Activity for the current scope, removing the need to get an Activity from LocalContext
  • Added a new lint rule that checks when LocalContext is incorrectly being cast to an Activity
Changed 1
  • Activity Compose now depends on Compose Runtime 1.7.0
Fixed 1
  • PredictiveBackHandler no longer fires its callback after the handler has been disabled, fixing an IndexOutOfBoundsException thrown by the NavHost from Navigation Compose
View originalRead the notes
How 1.10.0-alpha03 went

1.9.3

Fixed 1
  • PredictiveBackHandler no longer fires its callback after the handler has been disabled, which fixes an IndexOutOfBoundsException thrown by the NavHost from Navigation Compose
View originalRead the notes
How 1.9.3 went

1.10.0-alpha02

Changed 1
  • The PickVisualMedia and PickMultipleVisualMedia Activity Result contracts no longer directly delegate to Google Play services when the system Photo Picker is unavailable, and instead use the public ACTION_SYSTEM_FALLBACK_PICK_IMAGES action and related extras as a fallback for OEMs and system apps
Fixed 3
  • Removed manual outlining of access to new platform APIs, since this now happens automatically via API modeling with R8 (AGP 7.3 or later) and for all builds with AGP 8.1 or later
  • The Activity Compose PredictiveBackHandler API no longer continues to handle the system back gesture on the frame it is disabled, preventing libraries like Navigation Compose from throwing an IndexOutOfBoundsException with an empty back stack
  • Calling onBackPressed from the OnBackPressedDispatcher after a system back gesture handled by PredictiveBackHandler no longer fails
View originalRead the notes
How 1.10.0-alpha02 went

1.9.2

Fixed 1
  • PredictiveBackHandler in Activity Compose no longer handles the system back gesture on the frame it is disabled, preventing libraries such as Navigation Compose from throwing an IndexOutOfBoundsException when back is handled with an empty back stack
View originalRead the notes
How 1.9.2 went

1.9.1

Fixed 1
  • Fixed an issue with PredictiveBackHandler where after doing system back, attempting to do onBackPressed from the OnBackPressedDispatcher would fail.
View originalRead the notes
How 1.9.1 went

1.10.0-alpha01

Added 2
  • Added support for new PhotoPicker features introduced in Android V, including being able to pick images in order
  • Added the ability to choose which tab (either albums or images) should be initially visible in PhotoPicker
View originalRead the notes
How 1.10.0-alpha01 went

1.9.0

Added 1
  • ComponentActivity now implements OnUserLeaveHintProvider to allow components to register callbacks for onUserLeaveHint events.
Changed 1
  • The OnBackPressedCallback, BackHandler, and PredictiveBackHandler APIs now warn when calling onBackPressedDispatcher.onBackPressed() while handling back, as this will always break the Predictive Back Animation.
View originalRead the notes
How 1.9.0 went

1.9.0-beta01

Fixed 1
  • Fixed an Activity startup performance regression introduced in Activity 1.9.0-alpha02 caused by calling the OnBackPressedDispatcher as part of the creation of the Activity.
View originalRead the notes
How 1.9.0-beta01 went

1.9.0-alpha03

Changed 2
  • The OnBackPressedCallback, BackHandler, and PredictiveBackHandler APIs now warn when calling onBackPressedDispatcher.onBackPressed() while handling back, as that will always break the Predictive Back Animation
  • A back event sent from the system during an already running Predictive Back Gesture cancels the current gesture and begins a new Predictive Back Gesture
Fixed 1
  • Fixed a crash when accessing the onBackPressedDispatcher from a ComponentActivity for the first time from a background thread; it is now safe to access the onBackPressedDispatcher on any thread
View originalRead the notes
How 1.9.0-alpha03 went

1.9.0-alpha02

Changed 6
  • ActivityResultRegistry has been rewritten in Kotlin so that the nullability of the generics on the contract passed to register is correctly passed through to the returned ActivityResultLauncher
  • ActivityResult has been rewritten in Kotlin
  • The ActivityResult Kotlin extensions supporting destructuring into resultCode and data have been moved from activity-ktx to activity
  • The Kotlin extensions of by viewModels() for ComponentActivity and trackPipAnimationHintView have been moved from activity-ktx to activity
  • The activity-ktx artifact is now completely empty
  • The enableEdgeToEdge API now draws around any display cutouts
Fixed 1
  • The extra passed to the Photo Picker Activity Contract's ACTION_SYSTEM_FALLBACK_PICK_IMAGES now correctly uses the EXTRA_SYSTEM_FALLBACK_PICK_IMAGES_MAX key instead of the key "com.google.android.gms.provider.extra.PICK_IMAGES_MAX"
View originalRead the notes
How 1.9.0-alpha02 went

1.8.2

Fixed 1
  • The extra passed to the Photo Picker Activity Contract's ACTION_SYSTEM_FALLBACK_PICK_IMAGES now uses the EXTRA_SYSTEM_FALLBACK_PICK_IMAGES_MAX key instead of the incorrect key "com.google.android.gms.provider.extra.PICK_IMAGES_MAX"
View originalRead the notes
How 1.8.2 went

1.9.0-alpha01

Added 1
  • ComponentActivity now implements OnUserLeaveHintProvider to allow components to register callbacks for onUserLeaveHint events.
Changed 5
  • ComponentActivity has been rewritten in Kotlin.
  • ActivityResultCaller has been rewritten in Kotlin.
  • ActivityResultLauncher has been rewritten in Kotlin, and the getContract method is now an abstract Kotlin property, which is binary compatible but source breaking for Kotlin implementations of ActivityResultLauncher.
  • PickVisualMediaRequest now has the same minimum API level of 19 as the PickVisualMedia Activity Result contract.
  • Activity now depends on Core 1.13.0-alpha01.
View originalRead the notes
How 1.9.0-alpha01 went

1.8.1

Fixed 1
  • OnBackPressedDispatcher now continues to dispatch to the correct OnBackPressedCallback even after a new OnBackPressedCallback is added while the back gesture is being handled
View originalRead the notes
How 1.8.1 went

1.8.0

Added 3
  • OnBackPressedCallback now offers Predictive Back callbacks for handling the back gesture starting, progress during the gesture, and the back gesture being canceled, in addition to handleOnBackPressed() for when the back gesture is committed.
  • PredictiveBackHandler Composable is added to handle predictive back gesture events in Activity Compose, providing a Flow of BackEventCompat objects that must be collected in the suspending lambda provided.
  • ComponentActivity.enableEdgeToEdge() is added to easily set up edge-to-edge display in a backward-compatible manner.
Deprecated 1
  • ComponentActivity.onBackPressed() is deprecated in favor of the APIs for handling back, and developers should use OnBackPressedDispatcher instead of overriding this method.
View originalRead the notes
How 1.8.0 went

1.8.0-beta01

Improved the documentation of BackEventCompat. ( aosp/2722254)

View originalRead the notes
How 1.8.0-beta01 went

1.8.0-alpha07

Added 2
  • Added a new PredictiveBackHandler Composable in Activity Compose to handle predictive back gesture events, providing a Flow of BackEventCompat objects that must be collected in the provided suspending lambda
  • Added a compile time lint rule that warns when the Flow passed to PredictiveBackHandler does not call collect()
Changed 2
  • The onBackPressedDispatcher in ComponentActivity is now initialized lazily so that it is only created when required
  • Removed usages of the experimental isAtLeastU() API
Fixed 1
  • ComponentActivity no longer throws a NullPointerException on Android 13 when it receives an onBackPressed() callback after the Activity has already been destroyed
View originalRead the notes
How 1.8.0-alpha07 went

1.8.0-alpha06

Added 1
  • When passing SystemBarStyle.auto to the enableEdgeToEdge API, you can now override the detectDarkMode lambda parameter to provide custom logic for detecting night mode.
Fixed 1
  • The OnBackPressedDispatcher now correctly cancels any callbacks that are removed during a Predictive Back Gesture.
View originalRead the notes
How 1.8.0-alpha06 went

1.8.0-alpha05

Added 2
  • Add a BackEventCompat class that is a backward compatible version of BackEvent, decoupled from the framework BackEvent class
  • The OnBackPressedDispatcher constructor accepts an optional Consumer<Boolean> that receives a callback whenever the number of enabled callbacks changes between zero and non-zero
Changed 2
  • The handleOnBackStarted and handleOnBackProgressed methods of OnBackPressedCallback now receive an androidx.activity.BackEventCompat instance instead of a framework android.window.BackEvent class
  • The equivalent @VisibleForTesting APIs on OnBackPressedDispatcher are updated to use BackEventCompat
Fixed 1
  • Fix ReportDrawn crashing when navigating away from a screen before report is called
View originalRead the notes
How 1.8.0-alpha05 went

1.7.2

Fixed 1
  • Fixed ReportDrawn crashing when navigating away from a screen before report is called
View originalRead the notes
How 1.7.2 went

1.8.0-alpha04

Fixed 1
  • The ReportFullyDrawExecuter no longer leaks when using ComponentActivity with ActivityScenario.
View originalRead the notes
How 1.8.0-alpha04 went

1.7.1

Fixed 1
  • The ReportFullyDrawExecuter no longer leaks when using ComponentActivity with ActivityScenario.
View originalRead the notes
How 1.7.1 went

1.8.0-alpha03

Added 2
  • Added ComponentActivity.setUpEdgeToEdge() to easily set up the edge-to-edge display in a backward-compatible manner
  • ComponentDialog and ComponentActivity now contain public API initViewTreeOwners() to be used to initialize all view tree owners before setting the content view
Changed 1
  • The ActivityResultRegister now uses Kotlin Random instead of Java Random
Fixed 1
  • Fixed an issue where Fragments were incorrectly invalidating MenuHosts and causing other menus in the Activity to have unexpected behavior
Deprecated 1
  • ComponentActivity.onBackPressed() has been deprecated in favor of the APIs for handling back; developers should utilize the OnBackPressedDispatcher rather than overriding this method
View originalRead the notes
How 1.8.0-alpha03 went

1.7.0

Added 3
  • IntentSenderRequest.Builder.setFlags() allows setting multiple Intent flags rather than only a single flag
  • ComponentActivity now provides a FullyDrawnReporter instance that lets multiple components report when they are ready for interaction, and calls reportFullyDrawn() on their behalf once all have completed
  • ReportDrawn, ReportDrawnWhen, and ReportDrawnAfter Activity Compose APIs were added to report fully drawn state from individual composables
Changed 5
  • The Photo Picker activity contracts PickVisualMedia and PickMultipleVisualMedia now use an additional fallback action when MediaStore.ACTION_PICK_IMAGES is unavailable, allowing OEMs and system apps to provide the Photo Picker experience, before falling back to Intent.ACTION_OPEN_DOCUMENT
  • ComponentDialog now implements SavedStateRegistryOwner, has its own SavedStateRegistry, and sets the SavedStateRegistryOwner on its ViewTree, enabling Jetpack Compose within a ComponentDialog
  • Several Activity classes were converted to Kotlin while retaining binary compatibility; ActivityResultRegistryOwner and OnBackPressedDispatcherOwner have source-incompatible changes for Kotlin callers, with getters replaced by properties
  • Activity now depends on Lifecycle 2.6.1
  • Activity now depends on ProfileInstaller 1.3.0
View originalRead the notes
How 1.7.0 went

1.7.0-beta02

Added 1
  • The action and extra used by the PickVisualMedia and PickMultipleVisualMedia contracts as a fallback when MediaStore.ACTION_PICK_IMAGES is unavailable are now public constants
Changed 1
  • The fallback implementation for the PickVisualMedia and PickMultipleVisualMedia contracts is still limited to only system apps
View originalRead the notes
How 1.7.0-beta02 went

1.8.0-alpha01

Added 1
  • The OnBackPressedCallback class now contains new Predictive Back progress callbacks for handling the back gesture starting, progress throughout the gesture, and the back gesture being canceled.
View originalRead the notes
How 1.8.0-alpha01 went

1.7.0-beta01

Added 1
  • IntentSenderRequest.Builder.setFlags() now allows you to set multiple flags from Intent, rather than only a single flag.
Changed 3
  • ActivityResultRegistryOwner is now written in Kotlin; this is a source incompatible change for classes written in Kotlin, which must now override the activityResultRegistry property rather than implementing the previous getActivityResultRegistry() function.
  • OnBackPressedDispatcherOwner is now written in Kotlin; this is a source incompatible change for classes written in Kotlin, which must now override the onBackPressedDispatcher property rather than implementing the previous getOnBackPressedDispatcher function.
  • ContextAware, ContextAwareHelper, OnContextAvailableListener, IntentSenderRequest and OnBackPressedDispatcher are now written in Kotlin.
Fixed 1
  • The fallback for PickVisualMedia for when the framework Photo Picker is unavailable now correctly limits the handling to apps installed in the device's system image.
View originalRead the notes
How 1.7.0-beta01 went

1.7.0-alpha04

Added 1
  • The PickVisualMedia and PickMultipleVisualMedia Activity Result contracts use a Google Play services provided Photo Picker where available when the Android system provided Photo Picker is not available
Deprecated 1
  • The isPhotoPickerAvailable() API that only detects the Android system provided Photo Picker is deprecated in favor of isPhotoPickerAvailable(Context)
View originalRead the notes
How 1.7.0-alpha04 went

1.7.0-alpha03

Added 3
  • ComponentDialog now implements SavedStateRegistryOwner and has access to its own SavedStateRegistry
  • ComponentDialog sets the SavedStateRegistryOwner for its ViewTree, making it possible to use Jetpack Compose within a ComponentDialog
  • Added a ReportDrawn composable that immediately marks the activity as ready to call reportFullyDrawn
View originalRead the notes
How 1.7.0-alpha03 went

1.7.0-alpha02

Fixed 1
  • Fixed an issue with the PickMultipleVisualMedia Activity Result contract not launching on Android R devices when using the default value for maxItems.
View originalRead the notes
How 1.7.0-alpha02 went

1.6.1

Fixed 1
  • Fixed an issue with the PickMultipleVisualMedia Activity Result contract not launching on Android R devices when using the default value for maxItems.
View originalRead the notes
How 1.6.1 went

1.7.0-alpha01

Added 4
  • ComponentActivity now provides a FullyDrawnReporter instance that allows multiple components to report when they are ready for interaction.
  • ComponentActivity waits for all components to complete before calling reportFullyDrawn() on the app's behalf.
  • Activity Compose API ReportDrawnWhen takes a predicate to indicate when a composable is ready for interaction.
  • Activity Compose API ReportDrawnAfter takes a suspending method that, when it completes, indicates the composable is ready for interaction.
View originalRead the notes
How 1.7.0-alpha01 went

1.6.0

Added 1
  • Added ActivityResultContracts.PickVisualMedia and ActivityResultContracts.PickMultipleVisualMedia as a backward compatible contract that uses MediaStore.ACTION_PICK_IMAGES when the Photo Picker is available and Intent.ACTION_OPEN_DOCUMENT when it is not available
Changed 1
  • Integrated the OnBackInvokedCallback in Android 13 into the OnBackPressedDispatchers provided by ComponentActivity and ComponentDialog so that all APIs built on OnBackPressedDispatcher work when enabling a predictive back gesture
View originalRead the notes
How 1.6.0 went

1.6.0-rc02

Changed 2
  • OnBackPressedDispatcher now registers the OnBackInvokedCallback with the PRIORITY_DEFAULT instead of PRIORITY_OVERLAY
  • The Activity library now depends on Lifecycle 2.5.1
Fixed 3
  • Classes that extend ComponentActivity will now always have both of their onMultiWindowModeChanged() callbacks dispatched
  • The ActivityResultRegistry will no longer return a result to the ActivityResultCallback when the launch call throws any Exception and the callback was registered without a LifecycleOwner
  • ComponentActivity will now properly dispatch menu calls without the need to call the super function in your activity
View originalRead the notes
How 1.6.0-rc02 went

1.6.0-rc01

Fixed 2
  • Initializing an OnBackPressedDispatcher no longer causes ClassVerificationErrors when using SDK versions prior to 33.
  • Classes that override ComponentActivity's onPictureInPictureModeChanged() callback will now always have their callbacks dispatched.
View originalRead the notes
How 1.6.0-rc01 went

1.6.0-beta01

Changed 3
  • Marked the deprecated startActivityForResult and startIntentSenderForResult methods on ComponentActivity with @NonNull because passing null has always resulted in a crash.
  • The ActivityResultRegistry will no longer return a result to the ActivityResultCallback when the launch call throws any Exception and the callback was registered without a LifecycleOwner.
  • The Activity library now depends on the Lifecycle version 2.5.1.
Fixed 1
  • ComponentActivity will now properly dispatch menu calls to onPrepareOptionMenu(), onCreateOptionsMenu() and onOptionsItemSelected() overrides without the need to call the super function.
View originalRead the notes
How 1.6.0-beta01 went

1.5.1

Changed 1
  • The Activity library now depends on Lifecycle 2.5.1
Fixed 2
  • ActivityResultRegistry no longer returns a result to the ActivityResultCallback when launch() throws any Exception and the callback was registered without a LifecycleOwner
  • ComponentActivity now properly dispatches menu calls to onPrepareOptionMenu(), onCreateOptionsMenu() and onOptionsItemSelected() overrides without the need to call the super function
View originalRead the notes
How 1.5.1 went

1.5.0

Added 4
  • ComponentDialog is a subclass of Dialog that includes an OnBackPressedDispatcher called when the system back button is pressed while the dialog is visible
  • ComponentDialog sets the ViewTreeOnBackPressedDispatcherOwner, allowing views to retrieve the correct dispatcher whether in a ComponentActivity or a ComponentDialog
  • ComponentActivity implements modular callback interfaces OnNewIntentProvider, OnConfigurationChangedProvider, OnTrimMemoryProvider, OnPictureInPictureModeChangedProvider, and OnMultiWindowModeChangedProvider as alternatives to Activity callbacks
  • ComponentActivity can provide a stateless ViewModelProvider.Factory via Lifecycle 2.5.0's CreationExtras
Deprecated 1
  • The no-parameter constructor of ActivityResultContracts.CreateDocument is deprecated and replaced by a new constructor that takes a concrete mime type such as "image/png"
View originalRead the notes
How 1.5.0 went

1.6.0-alpha05

Changed 1
  • minCompileSdk is now 33 to align with Tiramisu Beta 3 SDK
Fixed 1
  • Fixed crash on older devices when doing SDK extension check for the PickVisualMedia ActivityResultContract so that it now works with ACTION_OPEN_DOCUMENT on devices running Android 10 and lower
View originalRead the notes
How 1.6.0-alpha05 went

1.6.0-alpha04

Changed 1
  • Integrated the OnBackInvokedCallback in Android 13 Dev Beta 2 into the OnBackPressedDispatcher provided by ComponentDialog so that all APIs built on OnBackPressedDispatcher work when enabling a predictive back gesture.
Fixed 1
  • Fixed an error in PickVisualMediaRequest where attempting to create a request, either via the Builder or the top level Kotlin function, would result in a stack overflow.
View originalRead the notes
How 1.6.0-alpha04 went

1.6.0-alpha03

Added 1
  • Added ActivityResultContracts.PickVisualMedia and ActivityResultContracts.PickMultipleVisualMedia as a backward compatible contract that uses MediaStore.ACTION_PICK_IMAGES when the Photo Picker is available and Intent.ACTION_OPEN_DOCUMENT when it is not
Changed 1
  • Integrated the OnBackInvokedCallback from Android 13 Developer Beta 1 into the OnBackPressedDispatcher provided by ComponentActivity so that all APIs built on OnBackPressedDispatcher work when a predictive back gesture is enabled
View originalRead the notes
How 1.6.0-alpha03 went

1.5.0-alpha05

Fixed 1
  • ComponentActivity's onPanelClosed() now calls the super onPanelClosed() as well, fixing an issue where the onContextMenuClosed method would not be called.
View originalRead the notes
How 1.5.0-alpha05 went

1.6.0-alpha01

Changed 2
  • Integrated changes in Android 13 Developer Preview 2 into ComponentActivity
  • This version will only compile against the Android 13 Developer Preview 2 SDK
View originalRead the notes
How 1.6.0-alpha01 went

1.5.0-alpha04

Changed 2
  • SavedStateViewFactory now supports using CreationExtras even when it was initialized with a SavedStateRegistryOwner
  • If CreationExtras are provided to SavedStateViewFactory, the initialized arguments are ignored
View originalRead the notes
How 1.5.0-alpha04 went

1.5.0-alpha03

Added 1
  • CreationExtras can now be passed to the activity through the viewModels() function.
View originalRead the notes
How 1.5.0-alpha03 went

1.5.0-alpha02

Added 2
  • ComponentActivity now implements the OnPictureInPictureModeChangedProvider interface to allow any component to receive picture-in-picture mode change events.
  • ComponentActivity now implements the OnMultiWindowModeChangedProvider interface to allow any component to receive multi-window mode change events.
View originalRead the notes
How 1.5.0-alpha02 went

1.5.0-alpha01

Added 5
  • Added ComponentDialog, a subclass of Dialog that includes an OnBackPressedDispatcher that is called when the system back button is pressed while the dialog is visible
  • ComponentDialog sets the ViewTreeOnBackPressedDispatcherOwner, allowing views to retrieve the correct dispatcher whether in a ComponentActivity or a ComponentDialog
  • ComponentActivity implements the new OnNewIntentProvider interface to allow any component to receive new intent events
  • ComponentActivity implements the new OnConfigurationChangedProvider interface to allow any component to receive configuration change events
  • ComponentActivity implements the new OnTrimMemoryProvider interface to allow any component to receive trim memory events
Changed 2
  • ComponentActivity now integrates with ViewModel CreationExtras, introduced as part of Lifecycle 2.5.0-alpha01
  • The OnBackPressedDispatcherOwner associated with a View can now be retrieved via ViewTreeOnBackPressedDispatcherOwner rather than by casting the Context
Fixed 1
  • Fixed a crash when accessing a ViewModel for the very first time from a registerForActivityResult() callback or from LifecycleObserver callbacks added during ComponentActivity init
Deprecated 1
  • The no parameter constructor for ActivityResultContracts.CreateDocument is deprecated and replaced with a new constructor that takes a concrete mime type such as image/png
View originalRead the notes
How 1.5.0-alpha01 went

1.4.0

Added 3
  • ComponentActivity now implements the MenuHost interface, allowing any component to add menu items to the ActionBar by adding a MenuProvider instance to the activity
  • MenuProvider instances can optionally be added with a Lifecycle that automatically controls the visibility of their menu items based on the Lifecycle state
  • MenuProvider instances added with a Lifecycle are automatically removed when the Lifecycle is destroyed
Changed 2
  • The ActivityResultContract class has been rewritten in Kotlin so developers writing custom contracts in Kotlin can define the correct nullability for their input and output classes
  • The ActivityResultContracts class and its contracts have been rewritten in Kotlin to ensure proper nullability
View originalRead the notes
How 1.4.0 went

1.4.0-rc01

Fixed 1
  • ActivityResultRegistry no longer returns a result to the ActivityResultCallback when the launch call throws any Exception
View originalRead the notes
How 1.4.0-rc01 went

1.4.0-beta01

Changed 2
  • Public constants within ActivityResultContracts.StartActivityForResult, ActivityResultContracts.StartIntentSenderForResult, and ActivityResultContracts.RequestMultiplePermissions are now accessible from Kotlin via their public Companion objects
  • Expanded the deprecation messages for startActivityForResult, startIntentSenderForResult, onActivityResult, requestPermissions, and onRequestPermissionsResult with more details
Fixed 1
  • Fixed the type of ActivityResultContracts.OpenMultipleDocuments and ActivityResultContracts.GetMultipleContents so they no longer produce an output type of List<? extends Uri> when used from Java
View originalRead the notes
How 1.4.0-beta01 went
View all

Discussion