Questions tagged [android-loadermanager]

An abstract class associated with an Activity or Fragment for managing one or more Loader instances. This helps an application manage longer-running operations in conjunction with the Activity or Fragment lifecycle; the most common use of this is with a CursorLoader, however applications are free to write their own loaders for loading other types of data.

Interface associated with an Activity or Fragment for managing one or more Loader instances associated with it. This helps an application manage longer-running operations in conjunction with the Activity or Fragment lifecycle; the most common use of this is with a CursorLoader, however applications are free to write their own loaders for loading other types of data.

While the LoaderManager API was introduced in HONEYCOMB, a version of the API at is also available for use on older platforms through FragmentActivity.

There is only one LoaderManager per activity or fragment. But a LoaderManager can have multiple loaders.

Useful links

397 questions
-1
votes
1 answer

Resources inside Loader's loadInBackground()?

As far as I know, I can't hold reference to the activity's context inside a Loader. Is there a safe way to get resources inside Loader's loadInBackground() method?
-1
votes
1 answer

Load data from db using content provider

I am using content providers to store and retrieve data from Database. This is what happening in the app when user install the app. App start a service which will download data from server and store it in db App is using CursorLoader to load data…
-2
votes
2 answers

Loader is still alive after onDestroy

So from the documentation for Loaders it says that LoaderManager destroys the loaders when the Activity or Fragment is destroyed, but the activity callback onDestoy() is called when the screen is rotated. But the loader still retains it's data…
umbasa07
  • 21
  • 1
  • 3
-3
votes
1 answer

loadInBackground() method to parse data from raw folder

Please help! I am trying to parse data from a raw file on loadInBackground() method of LoadCallbacks class. The result must be a String[]. Here is what I have so far and I know it's broken, but I've been playing around with it a lot. @Override …
Pri
  • 1
  • 3
-4
votes
1 answer

viewpager first item doesn't show content

I know there is lots of threads talk about first item problems in viewpager, I searched many time about my issue but no way I just lose time. would you help me, please ? I use FragmentStatePagerAdapter , fragment and loader manager that add radio…
-4
votes
1 answer

what is the best coding strategy for supporting pre-3.0 devices with android support library and after-3.0 without it?

Some library has 2 implementations: one for native 3.0 API and another for ACL support. For example Mark Murphy's enhancement for the Loader framework. https://github.com/commonsguy/cwac-loaderex So how to cope with it?
-5
votes
1 answer

Android : I want to create loader with flight image

I want to create loader in android as same as attached gif Thanks in advance
1 2 3
26
27