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) {
Stop searching for code, let great code find you!  Add Codota to your java IDE