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:
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
its actually an aac player play streams live.
this is actually part of my Secondactivity 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);
thanks.