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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:34:30+00:00 2026-06-18T02:34:30+00:00

My code has an Activity, that has a FragmentPagerAdapter that creates ‘n’ fragments as

  • 0

My code has an Activity, that has a FragmentPagerAdapter that creates ‘n’ fragments as necessary.
Activity has a loader, and each fragment has its own loader. All loaders have unique ID.
(Activity’s loader in fact determines the number of Pages in the adapter)

I keep getting this warning here and there and can’t put my finger on what’s causing it.
It doesn’t seem to be critical, also looking at the LoaderManger’s code throwing this warning, but still – warnings are usually signs for bugs..

Had originally used FragmentStatePagerAdapter and then moved to FragmentPagerAdapter, thinking that could somehow be the issue – but obviously it’s not.

Posting code would really complicate this and add very little.

Any thoughts?

  • 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-18T02:34:31+00:00Added an answer on June 18, 2026 at 2:34 am

    in your fragment move your initLoader method inside the onActivityCreated method.

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onActivityCreated(savedInstanceState);
    
        LoaderManager lm = getLoaderManager();
        lm.initLoader(LOADER_ID, null, this);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting that error when starting the activity that has fragment. This is
I have a Fragment activity that has a ListFragment on the left and a
I have an activity that has a TabHost containing a set of TabSpecs each
Hope you guys can help, I have a activity that has tabs, each tab
My code has something like this: HttpFileCollection files Instead of looping through each file
EDIT : the code has been trimmed down to contain only what is necessary
I am coding an application that has an activity that can supply the end
I'm making a travelguide. I'm displaying data(activity) from a database(mysql). Each activity has his
I'm trying to create a searchable activity that gets its results from the google
I have an Activity that has all the display elements added dynamically. Theres no

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.