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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:23:11+00:00 2026-06-12T11:23:11+00:00

I have 3 fragments : Page1 – Page 2 – Page3 : when i

  • 0

I have 3 fragments : Page1 – Page 2 – Page3 :
when i slide to Page3 fragment i lose what i defined for some textviews in Page 1.
and vice versa for Page1, the only one which doesn’t change is Page2 (it is in the middle).

I want to know how can i save data when i slide Fragments.

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-12T11:23:13+00:00Added an answer on June 12, 2026 at 11:23 am

    Put in some code in your onPause method to save your data to a DB, a file or SharedPreferences and then put code in the onResume method to retrieve that data.

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

Sidebar

Related Questions

I have page which consists of couple fragments and in the header fragment I
Lets say you have a fragment of the page which displays the most recent
I have some .jspf files that are fragments which I include in a new
I have a fragment interface with tabs along the bottom which open different fragments
I have Fragment activity with pager: List<Fragment> fragments = new Vector<Fragment>(); fragments.add(Fragment.instantiate(this, PastEventListFragment.class.getName(),bundle)); fragments.add(Fragment.instantiate(this,
I have a ViewPager with 3 Fragments in there. Each Fragment uses a AsyncTaskLoader
How does URL fragments interact with CSS? I have a page, say: http://example.boom/is_this_a_bug.html .
I have a complex page where some parts of the page take more time
I have the two following XML files: Page1.xml <pages xmlns=http://marklogic.com/docs> <page> <elementNode>data1</elementNode> <textNode>text1</textNode> </page>
I have searched a bit around for a pager for fragment , I develop

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.