I am going on same activity from two different activities but when i come from Activity_A
to Activity_B
, i want view visible but when i came Activity_C
to Activity_B
i want that view visibility gone
so how can i achieve this
I tried startActivityForResult()
and onActivityResult()
like given in below solution
How to set a button visible from another activity in android
But using startActivityForResult()
and onActivityResult()
, I am not getting visibility
visible of view so is there any way to set visibility based on activity from which we are coming.