Code example for ActionBarActivity

Methods: getSupportFragmentManager

0
import android.support.v7.app.ActionBarActivity; 
 
public class AbstractActivity extends ActionBarActivity { 
 
	public void setFragment(Fragment f, String tag) {
		FragmentManager fm = getSupportFragmentManager();
		FragmentTransaction ft = fm.beginTransaction();
		ft.replace(android.R.id.content, f);
		ft.commit();
	} 
	 
	public static void start(Activity ctx, Class<?> clazz, long id) {
		Intent i = new Intent(ctx, clazz);
		i.putExtra("id", id);
		ctx.startActivity(i);
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java