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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:21:16+00:00 2026-06-11T21:21:16+00:00

i m using pageviewer with FragmentPagerAdapter , every page is a fragment. in each

  • 0

i m using pageviewer with FragmentPagerAdapter , every page is a fragment. in each fragment i have a thread. i want on current page-fragment to run a thread that refresh some view of the fragment. when i change page i want to stop the thread of the fragment page that is no longer the current page and i want to start the thread of new fragment-page. where can i insert the “start thread” and “stop thread” in my code ? the problem is that i cant insert them in fragment life method because fragmentpageradapter create not only current fragment but also the next fragment(example when the current page is the “0” ,every method life of fragment of pag “0” and pag “1” is executed ex:onAttach,onCreateView ecc …
please help me sorry for my english

  • 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-11T21:21:17+00:00Added an answer on June 11, 2026 at 9:21 pm

    You could do this implementing your threads in your activity and start threads in onAtach and stop it in onDetach fragment callbacks.

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

Sidebar

Related Questions

I want to take the current page's URL (using page:env(caller)) and extract a section
I have a basic PageView model that tracks when a particular page is opened.
I have a csv dump that I'm trying to import to run analysis on
I am using a pageviewer webpart to display a .htm page which is present
I've been getting some odd behavior using a foreach today. I have a dataset
I have an intranet web project that is currently using the IEWC tabstrip and
Using a populated Table Type as the source for a TSQL-Merge. I want to
We currently have a product that uses Sharepoint and a number different Web Part
I have some basic pageview incrementing code set up on a LAMP server (see
I have some xml: <?xml version=1.0 encoding=utf-8 ?> <?pageview_candidate?> <SearchResponse xmlns=http://schemas.microsoft.com/testpad Version=2.2> <mms:Image xmlns:mms=http://schemas.microsoft.com/testpad>

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.