Code example for ActionBarActivity

0
import de.uni.stuttgart.informatik.ToureNPlaner.Data.Constraints.Constraint; 
import de.uni.stuttgart.informatik.ToureNPlaner.UI.Fragments.ConstraintListFragment; 
 
import java.util.ArrayList; 
 
public class AlgorithmConstraintsScreen extends ActionBarActivity { 
	public static String IDENTIFIER = "constraints";
 
	@Override 
	@SuppressWarnings("unchecked") 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
		if (savedInstanceState == null) {
			FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
			ft.add(android.R.id.content, ConstraintListFragment.newInstance(
					(ArrayList<Constraint>) getIntent().getExtras().getSerializable(IDENTIFIER)), "list");
			ft.commit();
		} 
	} 
Experience pair programming with AI  Get Codota for Java