Unlocking New Possibilities with Android XR SDK Developer Preview 4

In a move aimed at enhancing the development landscape for extended reality (XR) devices, Google has unveiled Developer Preview 4 of the Android XR SDK. This latest iteration marks a significant step towards unifying cross-device development for various XR platforms, including headsets, wired XR glasses, and intelligent eyewear.
Revamped Naming Conventions for Clarity
As part of its ongoing efforts to streamline the development process, Google has introduced more descriptive naming conventions for its XR form factors. The previous term “AI glasses” has been rebranded as “audio glasses,” while “display AI glasses” is now referred to simply as “display glasses.” These changes are reflected in the updated documentation, making it easier for developers to understand the capabilities and applications of each device type.
Key Features and Enhancements
Developer Preview 4 is packed with new updates designed to facilitate the creation of immersive and augmented experiences across XR devices. Here are some of the noteworthy features:
- New APIs for Augmented Experiences: The introduction of the Jetpack Projected library allows developers to bridge app experiences from smartphones to users’ fields of view effectively. The new Device Availability API consolidates wear state and connectivity signals into standard Android Lifecycle.State values, enabling applications to adjust behavior based on whether the device is being worn.
- Automated Testing: The ProjectedTestRule API simplifies the testing process by automating the setup of projected test environments. This enhancement allows developers to write clean and reliable unit tests without the need for excessive boilerplate code.
- UI Improvements: The Jetpack Compose Glimmer library for display glasses has been updated to include Google Sans Flex, which improves legibility on optical see-through displays. Additionally, several new interactive components have been added to enhance user engagement.
Exciting Updates for XR Headsets and Wired Glasses
For those focused on developing fully immersive experiences for XR headsets and wired XR glasses, Developer Preview 4 brings several significant updates:
- Core Libraries Transitioning to Beta: Key libraries including XR Runtime, Jetpack SceneCore, and ARCore for Jetpack XR perception features are set to transition to Beta soon. This shift reflects a commitment to improving the developer experience by streamlining the Jetpack XR APIs.
- Enhanced 3D Model Capabilities: Developers can now fine-tune 3D models and access specific nodes using the GltfModelNode. This functionality allows for modifications in properties such as pose, materials, and textures, alongside the ability to run animations for targeted nodes.
- Native glTF Support: The introduction of SpatialGltfModel in Compose for XR allows developers to access nodes and animations within glTF models, facilitating the addition of textures and materials to 3D models.
Geospatial API for Contextual Experiences
One of the standout features in this release is an early preview of the Geospatial API for wired XR glasses, integrated within ARCore for Jetpack XR. This update enables developers to anchor digital content with high precision to real-world locations across more than 87 countries. By leveraging ARCore’s Visual Positioning System (VPS) alongside the Gemini Live API, developers can create contextually aware experiences that understand both the user’s location and position.
Imagine crafting an immersive, AI-guided walking tour that provides real-time audio descriptions of nearby places, seamlessly merging digital information with the physical environment. Such capabilities open up new avenues for interactive storytelling and educational applications in augmented reality.
To support developers in harnessing these new features, Google has also announced the Android XR Developer Catalyst Program, providing early access to hardware and resources for building immersive and augmented experiences. Interested developers are encouraged to apply and explore the potential of the Android XR SDK.
With Developer Preview 4, Google continues to pave the way for innovative XR development, providing tools and resources that empower creators to push the boundaries of immersive experiences.
Source for the original facts: Original source.



