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
0
votes
1 answer

How to load and manage many threejs object?

Currently I am having a problem with assigning name to mesh object before loading it. I have the code as below, and the object’s name (as well as position) always take the value of the last model in the array. Do you have any idea how to solve it?…
0
votes
0 answers

responsive css circle loader

I'm trying to make a css circle loader and I'm about 90 percent of the way there. Currently I have it so that the data attribute data-progress on the .loader class controls the progress. Everything works, but when the progress is animating it…
loriensleafs
  • 2,205
  • 9
  • 37
  • 71
0
votes
1 answer

why system loader load strings at read/execute segment?

I compiled this simple program at ubuntu 15.10 x64 char *glob = "hello strings" void main() { } and using the gdb I could find the "hello strings" are located at the read/execute segment with .text section. I already know that some strings…
ruach
  • 1,369
  • 11
  • 21
0
votes
1 answer

Loader is not allways firing onLoadFinished callback

Im using AsyncTaskLoader to fetch data from web api but in some reason, loader is not firing always onLoadFinished callback. Here is snippt from my Fragment, how I use the loader. Im always restarting loader restartLoader(...).forceload() to update…
devha
  • 3,307
  • 4
  • 28
  • 52
0
votes
1 answer

Flex: Loader do not load if already loaded?

Is there some way to check if what you are loading is already in memory and don't need to be loaded a second time?
Tinelise
  • 386
  • 4
  • 16
0
votes
0 answers

Cursor.registercontentobserver vs ContentResolver.registercontentobserver

I am trying to use loaders without content provider. To achieve this, while inserting/updating/deleting data from SQLite i use following code to notify. getContext().getContentResolver().notifyChange(CONTENT_URI, null); On the other hand, i have…
0
votes
1 answer

Merge FLA files or Loading a swf file on another swf

I have two FLA files, call them MAP.fla and ANI.fla, that I have to merge. One way I tried was to load the ANI.swf in MAP.swf during runtime using the normal way of doing it, using Loader and URLRequest. However, when I try to run it, flash detects…
Smiley
  • 3,207
  • 13
  • 49
  • 66
0
votes
1 answer

I have a AS3 class which extends movieClip with a dynamic image, how to make this image draggable?

I need to make an item draggable (dragable?) Sorry if my terminology is not right! I have a class where I will store variable and do calculations: package Classes { import flash.display.*; import flash.events.*; import flash.net.*; …
Rich
  • 1
  • 1
  • 1
0
votes
2 answers

Implementing page loader in Angular using promise

I am wondering what would be the best way to implement a function, that would be responsible for toggling a gif on certain requests. I don't want to display it on all of the http requests, so I don't want to place it within the interceptor - I want…
uksz
  • 18,239
  • 30
  • 94
  • 161
0
votes
0 answers

How do I show that my object is loading before it actually loads?

I currently have this: $(window).load -> $('#image-gallery').lightSlider gallery: true item: 1 thumbItem: 7 slideMargin: 0 loop: true But the issue is that my lightSlider is loading in the wrong position when the page is not…
hellomello
  • 8,219
  • 39
  • 151
  • 297
0
votes
0 answers

Render triangle using Modern OpenGL,SFML and obj loader

I want to use modern OpenGL to render my first triangle. (I'm using SFML).The program works fine when I use old functions (glBegin,glEnd) I have 2 classes: global Where I use this to initialize global sfml variables etc. (not relevant to my…
0
votes
1 answer

Flex as app : how to load a picture?

I'm new to flex, i'm used to flash (CS5 & as3) I'm trying to load a picture in my swf file to add a DisplacementMapFilter then. But i'm just cant load that picture. package { import flash.display.*; import flash.events.*; import…
Renan
  • 1
0
votes
1 answer

show one loader for 4 async tasks

I have an activity in which there are 4 async task. In that the array is being filled.Now till the time the data is loaded from API i want to show loader and when the array is filled it should disappears. I know how to show loader for one async task…
Bunny
  • 237
  • 2
  • 13
0
votes
0 answers

Android loader. Data is not dispatched after loader

I am trying to put a loader in my android app and i am facing one the either problems. The loader comes for 2 sec then goes away The loader keeps on loading but the data is not dispatched which should come after loading completes. The loader does…
0
votes
1 answer

How to check inside UI whether data exist in a table? By using Loader or just query()?

How to check inside UI whether data exist in a table? By using Loader or just query()? Which way is better? 1) Using Loader. @Override public void onActivityCreated(Bundle savedInstanceState) { …
DeniSHow
  • 1,394
  • 1
  • 18
  • 30