Is there any way to change the parent of an activity from class file.
I have two activities say ONE and TWO, and both of them can start a new activity say THREE.
Now if ONE starts THREE, then for up Navigation parent should be ONE.
But if TWO starts THREE, then for up Navigation parent should be TWO.
If i can change the parent for an activity from my class file. I will send some data from activities (ONE and TWO) to uniquely identify them then set the parent according to that data.
If there is any other way to do this then let me know.