handling back key in fragment page adapter

view story

http://stackoverflow.com – I have implemented action bar navigation tabs with view pager. The fragment page adapter class is shown below public static class TabsAdapter extends FragmentPagerAdapter implements ActionBar.TabListener, ViewPager.OnPageChangeListener { private final Context mContext; private final ActionBar mActionBar; private final ViewPager mViewPager; private final ArrayList<TabInfo> mTabs = new ArrayList<TabInfo>(); int currentselectedfragment=0; static final class TabInfo { private final Class<?> clss; private final Bundle args; (HowTos)