Android: access the Activity stack programmatically

只谈情不闲聊 提交于 2019-12-05 11:17:00

My impression is that the answer to the literal question is "no" - you cannot access that. But there's probably another way to accomplish what you need.

If these are all your activities, why not put an extra in the Intent (when going in the forward direction) which says which activity it is coming from.

You can then decide which back button image to display based on checking that extra, which should tell you what the previous activity was (if it was one of yours - if it's empty you have to assume it came from somewhere else in the system)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!