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

  • SEARCH
  • Home
  • 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 6087539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:52:54+00:00 2026-05-23T11:52:54+00:00

Basically I would like to know if we can have fragment layouts in devices

  • 0

Basically I would like to know if we can have fragment layouts in devices with Android OS < 3.0.

My app had a header on top with 5 different buttons and on start always the first button is clicked by default so the view below these buttons is for the first view. Now when you click on the second button beside it, I don’t want the header images to be refreshed but the view just below it needs to be refreshed. So its like updating the fragments below the header image buttons.

So can we have fragments in Android in devices with OS < 3.0.

Sana.

  • 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-23T11:52:54+00:00Added an answer on May 23, 2026 at 11:52 am

    You have to use the compatibility libraries provided by Google. Here’s how you use Fragments on devices < 3.0

    • Open Eclipse
    • Window->Android SDK and AVD
    • Available Packages->Android Support package (install this)

    Once installed, right click the Android project you want to add Fragment support for.

    • Build Path->Configure Build Path
    • Libraries tab
    • Add External JARs
    • Add the android-support-v4.jar (should be in the android downloads folder under extras/android/support/v4

    Now you application supports Fragments. There are some key differences to using the compatibility package over using SDK 3.0+. For instance

    1. The activity classes that use fragments must extend FragmentActivity NOT Activity.
    2. instead of getFragmentManager() you have to use getSupportFragmentManager

    Enjoy!!!

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

Sidebar

Related Questions

I would like to add a preprocessor to HTML pages. Basically, I have a
I would like to have fuzzy looking border around my Canvas control. Basically, I
Basically, I would like a brief explanation of how I can access a SQL
I would like to know how can I get certain inputs and put them
I would like to know how can I embedd a code source file (if
I just would like to know how can I dynamically change a label's values
I have a list or set of values that I would like to know
I am learning Java and I would like to know how you can print
I would like to have all locally bound IP addresses, basically an array of
I would like to know if I can use the parent constructor for passing

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.