Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onBackPressed() {
- //for testing purpose
- //returns the number of fragments on the Activity
- int count = fragmentManager.getBackStackEntryCount();
- //displays the fragments that are present on the activity with their names
- for (int i=count-1;i>=0;i--){
- String name = fragmentManager.getBackStackEntryAt(i).getName();
- Config.l("Count :"+i+" name :"+name);
- }
- super.onBackPressed();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement