title: How to void application exit when press hardware back button android?
body: <p>how can i avoid the exit of my activity when i press the back button of the device, for example i have this flow in my app:</p>
  
  <p>Main layout then when i click one item in the listview im going to Secondactivity but when i press back button my secondactivity means that my music streams stops</p>
  
  <p>its actually an aac player play streams live.</p>
  
  <p>this is actually part of my Secondactivity code:</p>
  
  <pre><code>@Override
      protected void onCreate( Bundle savedInstanceState ) {
          super.onCreate( savedInstanceState );
  
          requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
  
          setContentView( R.layout.main2 );
  
          getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title);
  
          title = (TextView) findViewById(R.id.title);
  
          icon  = (ImageView) findViewById(R.id.icon);
  
          logo_image = (ImageView) findViewById(R.id.logo_image);
  </code></pre>
  
  <p>thanks.</p>