开发者

Android: Name of Previous Activity

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜