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
加载中,请稍侯......
精彩评论