In my android application, I have following requirement.
Activity A --> Activity B(Go to A Option) --> Activity C(Go To A Option,Go To B Option)
1) To Go To Activity A from Activity B i have used onBackPressed()
method.
2) To Go To Activity B from Activity C i have used onBackPressed()
method again.
those are working fine.
3) Now i want to go to Activity A from Activity C (without Intent calling).
How can i do this?
Edited 1:
Activity A is my Main activity i don't want restart the activity by using Intent.i want to resume Activity A from activity c.(like i did from activity B by using onBackPressed).
Edited 2(With Answer):
Ok guys. Thanks everyone for giving me your help on my question.finally i found a simple answer similar to @Paresh Mayani's answer.
Answer:
Intent a = new Intent(getApplicationContext(),ActivityA.class);
a.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(a);
i got this nice solution by using this link that solved my problem. thanks to everyone again and i really appreciate that.