How to create "schemes" with jetpack compose?

Viewed 559

In my Android Studio app projects I registered all activities, services, receivers etc. in the manifest. I also could define schemes like:

myApp://MyMapActivity/x_and_y_coordinates

to open my app with this certain designated Activity and prefilles map area for instance. So I could either start this Activity from other apps or I could create notifications to start these Activities accordingly.

Now, I am creating an Android app with jetpack compose, I have one single Activity in which I compose all "views".. How would I be able to go to the map view immediately via jetpack compose?

1 Answers

You will have to configure you Activity to receive all intents and use the data provided in it to direct your compose tree to show the view you want.

Related