Code example for ActionBarActivity

Methods: onOptionsItemSelected

            return true; 
        // Handle action buttons 
        switch (item.getItemId()) {
                return super.onOptionsItemSelected(item);
    // 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) {
Connect your IDE to all the code out there  Get Codota for Java