Action bar Back button not working
I solved these problem by adding the below coding in GalleryActivity. ActionBar actionBar; actionBar=getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: onBackPressed(); return true; } return super.onOptionsItemSelected(item); } In MainActivity: Previously, public class HomeActivity extends BaseActivity Then I change into public class HomeActivity extends FragmentActivity In GalleryFragment: I use Intent … Read more