Once an app is installed, if the app registers itself to receive SEND_INTENT the same way it would on Android. The app then becomes available in the current Meta Horizon OS share sheet (as well as the Android native share sheet which may be launched from other 3p apps), allowing users to send photos, videos, links and more to your app.
If you register direct share targets, like when supporting specific message threads within a communication app, these will only become available on the Android native share sheet. See Provide Direct Share targets for more information.
Sharing out from your app
To share out from your app, you will need to launch the Android native share sheet. It can be launched the same way you would on Android through an intent. Right now, there is no way to launch the current Meta Horizon OS share sheet (which you may see in other 1p experiences such as the Gallery). Launching the Android native share sheet is recommended.
Apps can share the user’s whole view or a specific panel using MediaProjectionAPI. The android.media.projection APIs let you capture the contents of a device’s display as a media stream. You can play the stream back, record, or cast to other devices, such as TVs.
Android 14 (API level 34) introduces app screen sharing. This allows users to share a single app window instead of the entire device screen, regardless of windowing mode. App screen sharing excludes the status bar, navigation bar, notifications, and other system UI elements from the shared display, even when app screen sharing is used to capture an app in full screen. Only the contents of the selected app are shared.
App screen sharing ensures user privacy, increases user productivity, and enables multitasking by allowing users to run multiple apps while restricting shared content to just a single app.