Android deep linking - Back stack

前端 未结 3 713
长发绾君心
长发绾君心 2021-02-07 07:23

I am trying to implement deep linking in my Android application. I have been following this guide. I have an Android Activity that is started from and intent-filter in the Andro

3条回答
  •  無奈伤痛
    2021-02-07 08:17

    Have you tried doing this,

    Intent intent = new Intent(this, MyActivity.class);
    TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
    stackBuilder.addNextIntentWithParentStack(intent);
    stackBuilder.startActivities();
    

    You have to build your own App stack in case of deep links.

提交回复
热议问题