How to differentiate From Which Activity the current intent comes

前端 未结 3 842
情深已故
情深已故 2021-01-25 15:35

Form Activity Login I call

Intent intent=new Intent(LogIn.this,BRInfoActivity.class);

From Activity BrActivityList I Call

Inten         


        
3条回答
  •  终归单人心
    2021-01-25 16:16

    If you will start activity with startActivityForResult(). Then you can use getCallingActivity() to get caller.

提交回复
热议问题