4

How to Open Existing Fragment Transaction in Android?

Is is used to Replace the existing Fragment with new Fragments from drop down list in action bar?

Himanshu
  • 31,810
  • 31
  • 111
  • 133
Balaji
  • 41
  • 1

2 Answers2

1

Just in case this is what you asked, change

FragmentTransaction ft = openFragmentTransaction();

to

FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
Neoh
  • 15,906
  • 14
  • 66
  • 78
0

How to Open Existing Fragment Transaction in Android?

That concept does not make any sense.

Is is used to Replace the existing Fragment with new Fragments from drop down list in action bar?

When needed, create a new FragmentTransaction, call replace() on it to indicate what is to be replaced, then commit() the transaction

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491