Code example for ActionBarActivity

Methods: getSupportActionBar

    // FOR SETTING UP TABS IN ViewPagerTabsFragment 
    public ActionBar getActivityActionBar() {
        return getSupportActionBar(); 
    /* The click listner for ListView in the navigation drawer */ 
    private class DrawerItemClickListener implements ListView.OnItemClickListener {
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
    private void selectItem(int position) {
        // update the main content by replacing fragments 
        if (position == 0) {
            SimpleViewPagerFragment fragment = SimpleViewPagerFragment.newInstance(position);
Connect your IDE to all the code out there  Get Codota for Java