title: Intercepting Back Key in Android
body: <p>I can't figure out how to handle below Activity Flow.</p>
  
  <p>I have 2 activities and 1 view class in my android app. </p>
  
  <p>Main Activity -> Sub Activity -> View Class  ( I am calling Sub Activity from Main Activity Class and with in Sub-Activity I am instantiating a View Class).</p>
  
  <p>But When I press back button while in View Class it returns back to Main Activity. </p>
  
  <p>View Class (Back Button Pressed) ->  Main Activity </p>
  
  <p>But my desired behavior is like this :  View Class (Back Button Pressed) -> Sub-Activity -> Main Activity).</p>
  
  <p>Please guide me how can I do it.</p>
  
  <p>Thanks in advance.</p>