For some reason the system does not find the attach and detach methods for Fragments like in here…
import android.app.Fragment;
import android.app.FragmentTransaction;
public void onTabUnselected(Tab tab, FragmentTransaction ft) {
if (mFragment != null) {
// Detach the fragment, because another one is being attached
ft.detach(mFragment);
}
}
I get the above error in the compiler.
The project is based on Android 3.1 level 12. And I already resinstalled the complete Android 3.1 SDK.
I though all that would be part of Android 12?
All the other Fragment methods and references work fine.
Many thanks!
API Level 12 doesn’t have
FragmentTransaction.detach(Fragment)API.http://developer.android.com/reference/android/app/FragmentTransaction.html (filter by API level 12 on top right corner)