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 8724183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:46:31+00:00 2026-06-13T07:46:31+00:00

In an Android application, similar to an application market, I have a Home view

  • 0

In an Android application, similar to an application market, I have a Home view and two other views contain lists. All these three lists will go to a list of products but with different arguments. And there is another view shows the product details view.

In such a scenario, when should I use Fragments and when should I use Activities? And how to determine? knowing that I search textbox in a tool bar which supposed to appear in the whole system.

The options I may have now is one activity in all the application contains the search toolbox. This activity will help in the navigation between fragments. The other option is to set the first 3 views in an activity, and the list of product in another activity, and the product details in a separated one.

  • 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-06-13T07:46:32+00:00Added an answer on June 13, 2026 at 7:46 am

    The reason that fragments were originally created was to allow for modular layout options on larger screen devices. The classic example is the dual pane layout that adapts based on your screen size.

    dual pane layout

    So the kinds of questions you might ask yourself to determine whether fragments are a good choice for you are:

    1. Do I want my app to adapt its look based on the screen size?
    2. Could I take advantage of a larger screen device to show 2, 3, 4 fragments on the same screen?
    3. Am I duplicating the same UI elements across all of my activities?

    If yes, fragments are what you are looking for. If no you can probably use activities.

    Fragments are certainly the future. In your example your base activity that contains all of your fragments could contain the search bar and could handle attaching new fragments and acting as the middle-man for dispatching data between fragments.

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

Sidebar

Related Questions

I have two Android applications with a similar functionality but different drawables and layouts.
I'm developing an Android Application that has three very similar Activities. I would like
Say I have two Activities in an Android application, EditPerson and EditEmployee . It
I have an Android application in the market which connects and send POST and
I am writing an android application and I need to have two classes use
I'm working on a custom view for an android application, similar to the Analog
My Android application was working in English and I have to provide the users
i'm developing an android application similar to Google places app. I want a functionality
I'm having a bit of a problem with my Android application. I have 2
I have published apk to the Android Market, activated and setup for free for

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.