开发者

Android: Name of Previous Activity

开发者 https://www.devze.com 2023-04-01 11:52 出处:网络
Is ther开发者_C百科e any way to determine what the name of the previous activity in the stack was without passing some data through an Intent Bundle?There is this method ComponentName getCallingActivi

Is ther开发者_C百科e any way to determine what the name of the previous activity in the stack was without passing some data through an Intent Bundle?


There is this method ComponentName getCallingActivity(). Try using it. But it works only if you start an activity using startActivityForResult().

Reference: Android Docs

0

精彩评论

暂无评论...
验证码 换一张
取 消