Questions tagged [loader]

Loaders make it easy to asynchronously load data in an activity or fragment.

Introduced in Android 3.0, loaders make it easy to asynchronously load data in an activity or fragment. Loaders have these characteristics:

  • They are available to every Activity and Fragment.
  • They provide asynchronous loading of data.
  • They monitor the source of their data and deliver new results when the content changes.
  • They automatically reconnect to the last loader's cursor when being recreated after a configuration change. Thus, they don't need to re-query their data.

Reference page: http://developer.android.com/guide/components/loaders.html

1805 questions
29
votes
17 answers

Dex Loader Unable to execute Multiple dex files define

Okay, now i'm really stuck here. I don't know what to do, where to go or ANYTHING! I have been trying to uninstall, reinstall, both SDK and Eclipse-versions, trying to Google this out, but nu-uh... Nothing!!! I CAN run my app in emulator, but i cant…
DreamHawk
  • 785
  • 2
  • 9
  • 20
27
votes
6 answers

What is the appropriate replacement of deprecated getSupportLoaderManager()?

I came to know that getSupportLoaderManager is deprecated. But I want to call: getSupportLoaderManager().initLoader(0, null, mRecipeLoaderManager); What should be an alternative to that call? Or can I still use getSupportLoaderManager without…
fabi
  • 454
  • 1
  • 5
  • 12
24
votes
1 answer

Python's __loader__, what is it?

I've seen the term __loader__ floating around some Python files and I can't find any documentation on it aside from a few brief descriptions about it's purpose, but they still don't provide enough information for me to get a good understanding of…
user3002473
  • 4,835
  • 8
  • 35
  • 61
22
votes
4 answers

Resolving imports using webpack's worker-loader in Jest tests

I'm writing a Jest test and am having trouble resolving this import which uses webpack's worker-loader import ImageInfoWorker from 'worker-loader?name=image_info!@WORKERS/image-info'; I have some other aliases which are resolving properly in my…
wuliwong
  • 4,238
  • 9
  • 41
  • 69
22
votes
3 answers

loading ELF file in C in user space

I am trying to load an ELF file compiled with "gcc -m32 test.c -o test.exe" on Linux in a 64 bit x86 environment. I am trying to load that 32bit file (test.exe) inside a user space ELF loader which has the following core logic (32bit ELF). The…
Smokey
  • 281
  • 1
  • 2
  • 6
22
votes
3 answers

using three.js JSONLoader

Just can't see models imported into three.js scene. The geometry looks fine but the model isn't displaying no matter what material I apply to it. I'm new to WebGL so it's hard for me to diagnose, but my guess is that something is going wrong during…
rob-gordon
  • 1,419
  • 3
  • 20
  • 38
22
votes
2 answers

load-time ELF relocation

I am writing a simple user-space ELF loader under Linux (why? for 'fun'). My loader at the moment is quite simple and is designed to load only statically-linked ELF files containing position-independent code. Normally, when a program is loaded by…
John Ledbetter
  • 13,557
  • 1
  • 61
  • 80
21
votes
5 answers

OnLoadFinished() called twice

I'm trying to figure out if I'm doing something wrong with respect to Loaders. I'm using the support library, and I have a Fragment which in onCreate() calls initLoader() setting itself as the LoaderCallbacks, however on a rotation it is receiving…
20
votes
3 answers

MEF: "Unable to load one or more of the requested types. Retrieve the LoaderExceptions for more information"

Scenario: I am using Managed Extensibility Framework to load plugins (exports) at runtime based on an interface contract defined in a separate dll. In my Visual Studio solution, I have 3 different projects: The host application, a class library…
d7samurai
  • 3,086
  • 2
  • 30
  • 43
19
votes
2 answers

Android SQLite Query, Insert, Update, Delete, Always Need to be On Background Thread?

I currently use Loaders to grab data from my ContentProvider (to enable auto-updating of my Cursors). This approach is straight-forward for Querying the database, though, it seems ill suited for any other DB operation (such as Insert, Update,…
AutoM8R
  • 3,020
  • 3
  • 32
  • 52
18
votes
4 answers

Changing Windows DLL load order? (load order, not search order)

Say I have one executable: app.exe I use 2 different 3rd party DLLs in this executable: foo.dll bar.dll and the Application must link implicitly to these DLLs, that is I cannot use ::LoadLibrary to load them. (Note: It's not that I cannot call…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
18
votes
4 answers

IOS Application loader shows bundle error

I have already waste 3 days "solving" this problem (actually I have tried everything i could imagine but get nothing). While binary uploading of my application i get the following error: ERROR ITMS-9000: "this bundle is invalid. armv7s are required…
serg_ov
  • 563
  • 7
  • 18
17
votes
2 answers

vite cannot handle xxx.html files

I had a Vite project for Vue2, It include a static html file. like following import template from 'editor.html'; export default { template: template } When I ran yarn dev, Terminal…
noahlam
  • 171
  • 1
  • 4
17
votes
1 answer

difference between -lgcc_s and gcc

what is the difference between linking against gcc_s and gcc by means of LDFLAGS? Is gcc_s a static library and gcc shared library? Because I was looking for a solution where it is mentioned to link against gcc whereas only gcc_s works in my case. I…
kumar
  • 2,530
  • 6
  • 33
  • 57
16
votes
1 answer

how does php autoloader works

Does php class Autoloader opens a file and checks for the class name? I have been looking on how is it actually implemented. One thing I know that its recursive? If I'm wrong please let me know As mentioned overhere : autoloader brief over view How…
meWantToLearn
  • 1,691
  • 2
  • 25
  • 45