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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:30:22+00:00 2026-06-14T00:30:22+00:00

referring at the diagram below: http://developer.android.com/guide/components/fragments.html Could someone please please explain why Google suggests

  • 0

referring at the diagram below:

http://developer.android.com/guide/components/fragments.html

Could someone please please explain why Google suggests to use 2 separate activities on a Phone and a single activity on a Tablet?
If I have code in activity A to manage Fragment B (for a Tablet) why should I repeat the same code in Activity B for a phone?

It seems that for a Phone I can still use 1 activity as well (only activity A) and replace fragments, this could reduce redundant code?

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-06-14T00:30:24+00:00Added an answer on June 14, 2026 at 12:30 am

    I get what you mean..

    You could use a fragment container and replace the fragments, define interface for selection callback. Google just does it this way maybe its clearer for those who come from the activities world i guess.

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

Sidebar

Related Questions

Referring to the Codeigniter user guide at http://codeigniter.com/user_guide/helpers/form_helper.html , I cannot seem to figure
Referring to the below link: http://www.javaworld.com/javaworld/jw-11-1998/jw-11-techniques.html?page=2 The composition approach to code reuse provides stronger
The Activity Lifecycle is giving me headaches. The documentation at http://developer.android.com/reference/android/app/Activity.html is so darn
I am referring to the https://developer.android.com/reference/android/provider/ContactsContract.Contacts.Entity.html#CONTENT_DIRECTORY . And I want to use the ContactsContract.Contacts.Entity
Referring to http://docs.python.org/howto/regex.html section Non-capturing and named groups , I saw an example whose
Referring to this, http://docs.oracle.com/cd/B19306_01/server.102/b14220/transact.htm How the transactions are managed into the MySQL database. My
Referring to this Python List Comprehension Vs. Map question, can someone explain why List
Referring to Ayende's post here: http://ayende.com/blog/3941/nhibernate-mapping-inheritance I have a similar situation that can be
Referring to this post on primefaces forum. Has someone got any idea how can
Referring to screenshot 1 below, I would like to create an image viewer circled

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.