Code example for FragmentActivity

Methods: moveTaskToBack, onKeyDown, startActivity

0
	        // the platform where it doesn't exist. 
	        onBackPressed(); 
	        return true; 
	    } 
 
	    return super.onKeyDown(keyCode, event);
	} 
 
	@Override 
	public void onBackPressed() { 
	    // This will be called either automatically for you on 2.0 
	    // or later, or by the code above on earlier versions of the 
	    // platform. 
		moveTaskToBack(true); 
		//finish(); 
		Intent intent = new Intent(this,FrontLine.class);
		startActivity(intent);
	    return; 
	} 
 
}