Code example for ActionBarActivity

Methods: getIntent, getSupportFragmentManager, onCreate, setTheme

0
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 
    public String getFileName() { 
        return mFileName; 
    } 
 
    @Override