Hey y'all, what's the recommended way to use a Lau...
# compose-wear
a
Hey y'all, what's the recommended way to use a LaunchAction to launch an activity that isn't in your module ? My scenario is that I have an app module which has my main activity (on wear), and then I have a tile module for my tile. I'd like to open the main app via the tile on a button click
y
Use TaskStackBuilder invoked from a LoadAction, and skip LaunchAction. launchAction doesn't support deeplinks or proper navigation state such as recents. Deeplinks should work well if you want to avoid sharing the activity class.
a
This might be a stupid question, but will the hard coded strings resolve correctly regardless of obfuscation? I assume yes since they're part of compose navigation routes. It's just been a while for me
y
Why would the strings be obfuscated?
They need to match entries in the manifest, and are publicly visible
a
Yeup stupid question 😅 I was still in the mindset of using LaunchAction and using a similar mechanism to class.java.getName()
Thanks for your help @yschimke 🙏