FunkyMuse
01/03/2023, 11:55 AMandroid.intent.action.SEND
With compose navigation component?
I want to open a nested navigation destination that accepts a uri which is basically a string encoded when passing the argument and decoding when reading it, displaying an image from that uri, simple as that.FunkyMuse
01/03/2023, 1:33 PMDisposableEffect(Unit) {
val listener = Consumer<Intent> {
// logic here
checkForRedirections(navHostController)
}
addOnNewIntentListener(listener)
onDispose { removeOnNewIntentListener(listener) }
}
This is called, but most of the time the intent is
Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=xxxx/.MainActivity }
and only sometimes it’s
Intent { act=android.intent.action.SEND typ=image/jpeg flg=0x10000001 cmp=xxxx/.MainActivity clip={image/jpeg {U(content)}} (has extras) }
FunkyMuse
01/03/2023, 1:34 PMlaunchMode
doesn’t work