I have couple of questions regarding deep linking in conjunction with up navigation.
In my application there is following hierarchy of activities:
HomeActivity -> ItemListActivity -> ItemDetailActivity
With deep linking (user clicks on a url from browser, email client etc) user may directly go to the ItemDetailActivity
.
In normal flow as shown above the back and up navigation will be exactly the same.
But if ItemDetailActivity
is opened via deep linking what should be the up navigation flow? Should it just behave like back and go to the starting activity or it should go to the HomeActivity
? As far as I know up navigation should remain in the app and it can not go to ItemListActivity
as search criteria to show item list is not known hence to HomeScreen
.
Also I want the launchMode
of ItemDetailActivity
to be singleTask
.