I have three screens (activities).Let's say A,B,C.

The screen transition is in the order A,B,C.

I want to close the application once the user tap "back" button from the third screen (screen C).

How to do it?