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
6
votes
4 answers

Qt QML: in-file definition of reusable objects

I have a Qml component that is reasonably large so that I want to make it a reusable component but it is too small/non-generic such that I want to avoid creating its own .qml file. It seems like Components are the right method to define reusable…
mattu
  • 944
  • 11
  • 24
6
votes
1 answer

Webpack not loading png images

I have few images in src folder: src/img/favicon.png src/img/profpic.png In index.html file I will point as In some html files I will point as I am trying…
ShaMoh
  • 1,490
  • 3
  • 18
  • 34
6
votes
3 answers

Running applications against a different SDK in OS X?

Summary I want to run my cross-compiled application against the 10.5 libraries. Is there an environmental variable that allows this to work? Longer version I cross-compiled my OS X C++ application for a 10.5 target, on a 10.6 host. It compiles fine.…
Paul Biggar
  • 27,579
  • 21
  • 99
  • 152
6
votes
2 answers

Webpack - how to configure base directory path for sass loader?

I'm trying to follow some tutorials and documentation and have the webpack build for me sass files into separates css files. It all kind of works, as long as I'm proving full relative path in require: require("../sass/ss.scss") But it I want to…
stach
  • 2,135
  • 2
  • 20
  • 22
6
votes
6 answers

Page Loader in html page

I am trying to show a loader GIF image in the div section of this html page. But I can't get it to work. The div content is hidden and the GIF image disappears. CSS: .loader { background-image: url(image/Preloader_8.gif); background-repeat:…
user3580570
  • 59
  • 1
  • 4
6
votes
2 answers

Swift - Execute code on LaunchScreen

In iOS there is an LaunchScreen before you're app is ready. Can you add things to do (Code) to this? I want to execute a JSON request on LaunchScreen but have no idea where to put the code. Thanks In Advance, Kaaseter
Kaaseter
  • 359
  • 1
  • 5
  • 6
6
votes
1 answer

Avoid bundling lib dependencies with webpack + handlebars loader

I'm writing a library using handlebars templates and I want to use Webpack to bundle it. I'm using handlebars-loader so that I can require and precompile the templates. However I don't want handlebars (nor handlebars/runtime) to be included in my…
Quentin Roy
  • 7,677
  • 2
  • 32
  • 50
6
votes
6 answers

Is it possible to replace Loader of an OS? Any way to obtain the control over Loader?

I was just wondering if it is possible to replace Loader (executable program loader not the boot loader) of an Operating System (Windows is my choice). Are there any third party loaders available that would patch the default one. Is there any way…
claws
  • 52,236
  • 58
  • 146
  • 195
6
votes
3 answers

Android: Prevent different spinner heights (empty and filled)

I have some spinners on the layout and use loader to load their data from db in background. The problems is that empty spinners have smaller height until the data are loaded. So the layout jump. How can I prevent this jumping? Edit (added spinner…
WebDucer
  • 1,114
  • 2
  • 16
  • 39
6
votes
5 answers

Any hand-on exercise to understand how a program is loaded into memory and get executed

I am curious about the things happend before main() is called , such like load the executable into memory , dynamic load of shared library. Do you have any suggestions how to understand these things by a hand-on exercise? The tools amd things I know…
pierrotlefou
  • 39,805
  • 37
  • 135
  • 175
6
votes
1 answer

What's .init_array section in ELF binary?

Every article says .init_array section is a function array, but in my experience it isn't. Here is my .init_array of libc.so compiled for Android: $ prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-objdump -s -j .init_array…
Zang MingJie
  • 5,164
  • 1
  • 14
  • 27
5
votes
2 answers

You may need an additional loader to handle the result of these loaders. Angular 14

I updated from Angular 7 to Angular 14 after removing all the errors in my project this is the only error that is stopping me from compiling successfully. I am getting this error on ng serve: /src/app/shared/styles/themes/theme-f.scss:1:6 - Error:…
Sana T.
  • 69
  • 1
  • 6
5
votes
3 answers

node:internal/modules/cjs/loader:942 throw err; ^ Error: Cannot find module 'express' Require stack:

I am working on running my express server with the command npm start. I am receiving: ```node:internal/modules/cjs/loader:942 throw err; ^ Error: Cannot find module 'express' Require stack: ```. I currently do not have node modules and also receive…
Andrea Everett
  • 349
  • 2
  • 4
  • 4
5
votes
3 answers

Do javascript loaders replace the need to do script combining?

Do script loaders replace the need to do script combining? Or are they really complementary tools?
Chris Marisic
  • 32,487
  • 24
  • 164
  • 258
5
votes
1 answer

webpack issue "downloadable font rejected by sanitizer" or "failed to decode downloaded font"

I ran into a well known problem that, however, has no clear solution: the following setup of webpack (encore, within Symfony) produces the error downloadable font: rejected by sanitizer ... in Firefox and failed to decode downloaded font in Edge for…
meistermuh
  • 393
  • 3
  • 11