alibaba / ARouter

💪 A framework for assisting in the renovation of Android componentization (帮助 Android App 进行组件化改造的路由框架)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

页面跳转问题

zuoni1018 opened this issue · comments

commented

案例
页面A 先finish后跳转B 然后B跳转C 这时候C跳转B的时候发现跳转补过去。日志输出
Calling a method in the system process without a qualified user: android.app.ContextImpl.startActivity:899 android.content.ContextWrapper.startActivity:401 androidx.core.content.ContextCompat.startActivity:251 com.alibaba.android.arouter.launcher._ARouter.startActivity:436 com.alibaba.android.arouter.launcher._ARouter.access$200:41
2022-12-06 19:57:38.123 1545-3957/system_process I/ActivityManager: START u0 {flg=0x10000000 cmp=com.elinkcare.pf920/.LoginActivity (

如果A页面先执行跳转再finish则无此问题

这并不是arouter的问题,即便是你用android原生的跳转startActivity在先finish再跳转的条件下也会出现这个问题,

commented

好的 谢谢。但是我在C页面使用startActivity是可以跳过去的,所以很奇怪。不过我这种确实是一个错误的写法。
https://blog.csdn.net/vitaviva/article/details/124477352