Code example for ActionBarActivity

0
import android.support.v7.app.ActionBarActivity; 
 
import com.fusionx.lightirc.interfaces.IServerSettings; 
import com.fusionx.lightirc.util.UIUtils; 
 
public class ChannelListActivity extends ActionBarActivity implements IServerSettings { 
    private String mFileName; 
 
    @Override 
    protected void onCreate(Bundle savedInstanceState) { 
        setTheme(UIUtils.getThemeInt(this)); 
 
        super.onCreate(savedInstanceState); 
 
        mFileName = getIntent().getStringExtra("filename"); 
 
        getSupportFragmentManager().beginTransaction().replace(android.R.id.content, 
                new ChannelListFragment()).commit(); 
    } 
 
    @Override