I have two apps : appA and appB, and I want appB to open a specific Fragment of appA, on button click.
AppA has a MainActivity mit nur einem fragmentcontainerview und zwei Fragmenten: Fragmenton und fragmenttwo . Navigationsdiagramm definiert einen Aktions -Link von Fragmentone zu Fragmenttwo .
Code: Select all
Code: Select all
Code: Select all
val intent: Intent = "appa://open-frag2?message=HELLO".toUri().let { uri ->
Intent(Intent.ACTION_VIEW, uri)
}
startActivity(intent)
if Appa im Hintergrund, wenn Sie auf die Taste "Appa öffnen", wird appa im Vordergrund, aber auf fragmentone , nicht auf if if if if if