title: onBackPressed() not being executed
body: <p>I'm implementing the onBackPressed() method in my activity. It's crucial to my app that I have this functionality. But, the control never enters this function. It enters onPause() instead, when I press the back button.</p>
  
  <p>But the problem is I can't have the same logic in onPause() because when I call another activity, the current activity calls onPause() and I don't want it to execute what should be in onBackPressed().</p>
  
  <p>Please help.</p>
  
  <pre><code>public void onBackPresed(){
  
     Log.d(TAG,"inside onBackPressed()");
         if(STATE == PREVIEW){
  
         } 
  }
  </code></pre>