I have 3 activities. Activity A which leads to activity B, which in turn can go back to activity A or start activity C. However, if I press back in activity C the app should
You can use finishAffinity() , it will close Current & all Parent Activities of the Current Activity.
finishAffinity()
Note : But any results from Child Activity to Parent Activity will not be handled.
Hope, it helps !!