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
11
votes
3 answers

Why is CursorLoader onLoaderReset() called after device rotation?

I have a main Activity A that uses a CursorLoader to query a DB. This I create in the activity onCreate() method: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... …
MickeyR
  • 1,858
  • 2
  • 13
  • 24
11
votes
2 answers

React - Module parse failed

I've got this error all day when running webpack from command line: ERROR in ./index.js Module parse failed: /home/kuro/Workspace/ExpressJS/corate/src/index.js Line 10: Unexpected token < You may need an appropriate loader to handle this file…
necroface
  • 3,365
  • 10
  • 46
  • 70
11
votes
1 answer

How do I load SVGs directly in my React component using webpack?

I would like to render a material design icon directly in my NextButton component using webpack. Here's the relevant part of my code: var NextIcon = require('material-design-icons/navigation/svg/production/ic_chevron_right_18px.svg'); var…
dduupp
  • 291
  • 2
  • 3
  • 11
11
votes
1 answer

Loaders and onLoaderReset Android

I implemented a Loader in my application for querying data from the database. I listen the changes that happen' by implementing LoaderCallbacks listener. The problem that I have is when using the onLoaderReset(Loader loader) method…
Sandra
  • 4,239
  • 10
  • 47
  • 80
10
votes
1 answer

change jspm_packages location

Is there a .bowerrc equivalent in jspm? When I run jspm install, I'd like jspm to install the packages to client/jspm_packages folder. How can I configure jspm to change location of jspm_packages folder? Thanks
kind_robot
  • 2,383
  • 4
  • 31
  • 45
10
votes
4 answers

Does the Java JVM load an entire jar or ear if it only uses one class from it?

Lets pretend you have a 3 Gb jar file and your application only uses a small class within it. Does the JVM load the whole jar file into memory or does it read the Table of Contents and load only the pieces it needs? Is this behavior controllable?
ojblass
  • 21,146
  • 22
  • 83
  • 132
9
votes
1 answer

What is the difference between dynamic linker and dynamic loader?

I know what a dynamic loader does. It loads programs as and when is requested by the application at run time thereby minimizing the memory foot print. But I am really not getting what is this dynamic linker? And what are its advantages? I read many…
Pavan Manjunath
  • 27,404
  • 12
  • 99
  • 125
9
votes
4 answers

Show loader when button is clicked in react native

I'm trying to implement the loader animation in my react native app but it does't trigger the loader when the button is clicked, although the animating already change to true. Check out my code below. componentWillMount(){ …
Leon
  • 329
  • 2
  • 3
  • 15
9
votes
2 answers

AS3: How do I get dynamic loader URL from LoaderInfo in Event Listener Function?

I'm loading many pictures, and am using an array to do so. loader[i].load(new URLRequest(picture[i])); My Event Listener function is enabled like this: loader[i].contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete); My onComplete…
Chowzen
  • 321
  • 3
  • 12
9
votes
4 answers

How loader Maps DLL in to Process Address Space

I am curious to know How the Loader Maps DLL in to Process Address Space. How loader does that magic. Example is highly appreciated. Thanks in advance.
Priyanka Mishra
  • 10,400
  • 18
  • 62
  • 75
9
votes
2 answers

webpack html-loader not replacing src attributes with require statements in Angular app

I've been trying to learn angular. I have a test project that I setup following this tutorial: http://shmck.com/webpack-angular-part-1/ I've been trying to augment it to use the html-loader to parse my html files and replace the src on my img tags…
chris
  • 91
  • 1
  • 2
9
votes
2 answers

C or C++: how do loaders/wrappers work?

Here's an example of what I mean... User runs LOADER.EXE program LOADER.EXE downloads another EXE but keeps it all in memory without saving it to disk Runs the downloaded EXE just as it would if it were executed from disk, but does it straight from…
guitar-
  • 1,051
  • 5
  • 15
  • 21
9
votes
2 answers

What is the difference between dynamic linking and dynamic loading

As i understand Dynamic loading means loading the library (or any other binary for that matter) into the memory during load or run-time. so in program below when dlopen() called dynamic loader will come in to picture and it will load the lib in to…
gauramit87
  • 243
  • 2
  • 7
8
votes
4 answers

Global screen loader in react

I am looking for a solution for using a global screen loader in react. I am not that much familiar to react context, but I was wondering if that could help me here. Basically I am introducing a screenloader and I was thinking that maybe the best way…
Maxrain
  • 221
  • 1
  • 4
  • 10
8
votes
7 answers

ClassNotFoundException when deserializing a binary class file's contents

I don't know much about Java. I'm trying to read a file containing an int and various instances of a class called "Automobile". When I deserialize it, though, the program throws a ClassNotFoundException and I can't seem to understand why. Here's the…
kettlepot
  • 10,574
  • 28
  • 71
  • 100