Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // Create new fragment and transaction
  2. Fragment newFragment = new SetupActivity();
  3. FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
  4.  
  5. // Replace with this fragment, and add the transaction to the back stack
  6. transaction.replace(android.R.id.tabhost, newFragment);
  7. transaction.addToBackStack(null);
  8. transaction.commit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement