Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7517403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:26:24+00:00 2026-05-30T01:26:24+00:00

For some reason the system does not find the attach and detach methods for

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:26:25+00:00Added an answer on May 30, 2026 at 1:26 am

    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)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, Section 1 works but Section 2 does not. When run in
I have the find.exe program in my utils folder. This does not work: system(\utils/find.exe\);
For some reason the system admin changed my user name from XxXx to XxXx1
Okay so im working on this php image upload system but for some reason
For some reason I never see this done. Is there a reason why not?
So I have tried GetType() but for some reason, It does include the namespace...
For some reason I can't find any results from my valid index of 3552
Very odd situation here. For some reason I can't call 'Where', or any other
For some reason, lately the *.UDL files on many of my client systems are
For some reason when I attempt to make a request to an Ajax.net web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.