Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create new fragment and transaction
- Fragment newFragment = new SetupActivity();
- FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
- // Replace with this fragment, and add the transaction to the back stack
- transaction.replace(android.R.id.tabhost, newFragment);
- transaction.addToBackStack(null);
- transaction.commit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement