Advertisement
Guest User

Untitled

a guest
May 30th, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @Override
  2. public void onBackPressed() {
  3. //for testing purpose
  4. //returns the number of fragments on the Activity
  5. int count = fragmentManager.getBackStackEntryCount();
  6. //displays the fragments that are present on the activity with their names
  7. for (int i=count-1;i>=0;i--){
  8. String name = fragmentManager.getBackStackEntryAt(i).getName();
  9. Config.l("Count :"+i+" name :"+name);
  10. }
  11. super.onBackPressed();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement