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

Unexpected token m in JSON at position 0 error

On compiling an app and trying to implement the i18n library with webpack, I face this error: ERROR in ./node_modules/bundle-loader?lazy&name=lang-pt!./src/locales/pt/translation.json Module parse failed: Unexpected token m in JSON at position 0 You…
vascobento
  • 183
  • 1
  • 1
  • 7
15
votes
2 answers

How to pass properties to a Loader created object?

I have a QML Loader which loads another qml Loader { id: gaugeLoader } PieMenu { id: pieMenu MenuItem { text: "Add Bar Gauge" onTriggered: gaugeLoader.source = "qrc:/Gauges/horizontalBarGauge.qml" } MenuItem { …
Basti An
  • 347
  • 1
  • 6
  • 23
15
votes
5 answers

How to change your XCode iTunes Connect login?

I am using several accounts to manage my customers iPhone/iPad applications. Therefore I need to connect to iTunes Connect with different logins. How can I change the login in XCode or Application Loader? It is always set to one default value that I…
vinzenzweber
  • 3,379
  • 4
  • 24
  • 26
14
votes
3 answers

Is it possible to generate Typescript interfaces from files with a webpack loader?

I am attempting to create a webpack loader that converts a file containing a description of API data structures into a set of TypeScript interfaces. In my concrete case, the file is JSON, but this should be ultimately irrelevant — the file is only a…
Shepmaster
  • 388,571
  • 95
  • 1,107
  • 1,366
14
votes
2 answers

Electron loading animation

Could someone please help me to implement a loading animation for my Electron app ? I am learning this new technology and it would be nice to understand the correct way to do that. I am thinking about something like : app.on('ready', () => { //…
ddon-90
  • 2,816
  • 1
  • 20
  • 29
14
votes
2 answers

How to handle errors in custom AsyncTaskLoader?

I am extending AsyncTaskLoader which I use later in a Fragment through LoaderManager. Is there suggested way to handle errors which occur during async task? I would like to popup message asking user to cancel or retry when internet connection error…
Malachiasz
  • 7,126
  • 2
  • 35
  • 49
13
votes
2 answers

How to load a local video in React using webpack?

I can't seem to figure out how to get an html5 video to render in a react app from local files. Literally the only way I've been able to get this to work is like this:
Alex Cory
  • 10,635
  • 10
  • 52
  • 62
13
votes
1 answer

What is the preferred method for loading STL files in Three.js

I'm writing an application that is designed to be used as part of a mechanical design and simulation workflow, and we'd like to be able to use Three.js to load and visualize parts designed in Solidworks, which can be exported as STL (text or…
user1460044
  • 359
  • 1
  • 3
  • 6
13
votes
2 answers

How does CorFlags.exe /32BIT+ work?

I guess my question is about the CLR Loader. I want to understand the mechanics behind CorFlags.exe /32BIT+ functionality. We know that when one starts an assembly compiled with the Any CPU flag set on 64-bit Windows, it starts as a 64-bit process.…
Nullptr Dev
  • 311
  • 2
  • 10
12
votes
7 answers

Sometimes don't get onCreateLoader callback after calling initLoader

I have an activity that calls initLoader when it is created in order to load the data that the activity will display. Normally, this works fine. I have breakpoints set to see the order that everything happens. First I call initLoader, then I get the…
casimps1
  • 1,749
  • 1
  • 11
  • 8
12
votes
3 answers

getLoaderManager in Fragments is deprecated

After update I found that getLoaderManager is deprecated but I can't find that should I use instead of. How to get LoaderManager? Or what should I use instead of Loaders?
Denis Sologub
  • 7,277
  • 11
  • 56
  • 123
12
votes
4 answers

Loading an svg in webpack with svg-url-loader

I'm having a lot of trouble working with SVG in my webpack workflow. I'm trying to get it to display with the background: url(sample.svg) property in CSS. Using this alone did not work, so I figured I had use a loader. Here are the steps I used. I…
InspectorDanno
  • 935
  • 2
  • 12
  • 23
12
votes
1 answer

Difference between the roles of loader and C runtime initialization

I was reading about the roles of the C runtime initialization from this link: http://www.embecosm.com/appnotes/ean9/html/ch05s02.html It says that the runtime intialization does tasks like setting up the stack and in further pages in detail it also…
tapananand
  • 4,392
  • 2
  • 19
  • 35
12
votes
4 answers

Linux user-space ELF loader

I need to do a rather unusual thing: manually execute an elf executable. I.e. load all sections into right places, query main() and call it (and cleanup then). Executable will be statically linked, so there will be no need to link libraries. I also…
beetoom
  • 479
  • 3
  • 9
12
votes
2 answers

Border and Title showing while Image loading in Firefox

I have a problem with firefox. On my website I have many images. When I browse through pages in Firefox, border and image title is visible while image is loading. Once it finishes downloading, this border/title disappears and is replaced with an…
Dxr Tw
  • 163
  • 1
  • 9