title: android start user defined activity on search button pressed @ handset
body: <p>I am using following code to start activity when user pressing search button on the handset</p>
  
  <pre><code>@Override
  public boolean onKeyUp(int keyCode, KeyEvent event) {
      if(keyCode == KeyEvent.KEYCODE_SEARCH){
          Util.startActivity(ReviewsDetail.this, KeywordSearch.class);
          return false;
      }else{
          return super.onKeyUp(keyCode, event); 
      }
  }
  </code></pre>
  
  <p>But here are few issues with it please look at the following image.</p>
  
  <p>When press search button it first show google search box at the top of activity then start activity which i want to start</p>
  
  <p><img src="https://i.imgur.com/QuhTf.jpg" alt="alt text"></p>
  
  <p>When click on the back button displays empty actiivty
  <img src="https://i.imgur.com/zvCwc.jpg" alt="alt text"></p>