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

LoaderManager.LoaderCallbacks seems not working correctly

I want to Leverage Loaders in my App as public class ForecastFragment extends Fragment implements LoaderManager.LoaderCallbacks{ private ListView forecasteListView; private SimpleCursorAdapter forecasteAdapter; private String…
Crazy Coder
  • 784
  • 2
  • 9
  • 24
0
votes
2 answers

web-service calls in android

I am building an app in android, where first activity does an Rest api call and shows the result on the screen. To do the web-service call,i can use asynctask or loader or Handlers . Services won't be good option as it's not a long-running operation…
Ritt
  • 3,181
  • 3
  • 22
  • 51
0
votes
0 answers

SWIFT Loading image progress show in Loader

I have an Imageview and I am setting an Image via Alamofire + Haneke framework in viewDidLoad. I want to use SwiftLoader to show user progress until imageView have its image set. How to properly time this situation? I tried ViewDidAppear but its…
Pan Mluvčí
  • 1,242
  • 2
  • 21
  • 42
0
votes
1 answer

Twig loader in constructor

I try to make my own Response class using twig
Torondor
  • 40
  • 6
0
votes
0 answers

Load default static translation files before getting overriding translation maps

I'm new to angular-translate (I'm not a God in Angular itself though). Say I have a set of translation JSON files already available, in English and Italian. Those contain the translations I should use by default. i18n/locale-en_GB.json { …
0
votes
1 answer

flash as3 external swf help/error

I am having an issue loading an external swf into my as3 project. I have created both swfs and both were creating using as3. In the one file I am trying to load the other swf, just for testing purposes. It works fine but for some reason I am getting…
ngreenwood6
  • 8,108
  • 11
  • 33
  • 52
0
votes
1 answer

Loader not retained and always created on orientation change

I have an Activity A that contains a Fragment B that contains a Fragment C. Currently, Fragment B's LoaderManager manages one CursorLoader. The data is given to Fragment C. On orientation change, the loader is lost: initLoader always leads to…
Jonas
  • 534
  • 8
  • 16
0
votes
2 answers

Restar Loader can't update gridview

I've got two SQL tables inner join with content provider query builder. My loader shows the first in a gridview like a charm. The second table has been created to show a favorite list and so it has primary key, foreign key and another column. By…
Domenico Maiuri
  • 191
  • 1
  • 1
  • 10
0
votes
1 answer

What is a scenerio in which when a Loader is started and there is already loaded data, which is not yet delivered to the client?

The following pseudocode implementation of onStartLoading of a custom Loader implementation is taken from this blog post. You can see that according to this method, when a loader enters a started state, i.e. when onStartLoading is called, we check…
Solace
  • 8,612
  • 22
  • 95
  • 183
0
votes
1 answer

Loader not disappearing after AJAX result is received

I have page that displays data through AJAX, till the time the result is being fetched I wish to display a loader and as soon as the result is fetched I want that the loader should disappear. Below is part of the code where I am trying to display…
user5237884
0
votes
1 answer

Call OnLoadFinished after return to fragment

I have some trouble with AsyncTaskLoader. My Activity have 2 fragments: FragmentA and FragmentB. At FragmentA at onCreateView() I inited my loader. It starts, load, and return data to onLoadFinished(). It's OK. Now I replace FragmentA by Fragment B…
Andrew
  • 1,383
  • 7
  • 21
0
votes
3 answers

A Question About Linking/Loading and A Simulator

I have designed a MIPS I simulator using Verilator which allows me to wrap verilog code into c++. I am attempting to run a c++ program on my processor but I've reached some problems. My goal is to: write a test program in c++ compile this program…
Dan Snyder
  • 1,483
  • 7
  • 20
  • 29
0
votes
0 answers

SQL Loader treating numbers as characters

I am trying to load data from a text file that is separated by a pipe "|" using the following control file: OPTIONS (DIRECT = FALSE, SKIP = 2, ERRORS = 2147483647) LOAD INTO TABLE APPEND FIELDS TERMINATED BY '|' TRAILING NULLCOLS ( desc …
Birupakhya Dash
  • 531
  • 3
  • 11
0
votes
1 answer

How to reduce size of the loader?

I want to reduce size of a loader viz in the snippet. What I want is to reduce its size around 10-20% proportionately. Please guide me into this so I can do it by myself in future. Here's my code: $(document).ready(function() { var…
Dami
  • 167
  • 2
  • 3
  • 14
0
votes
0 answers

How to active loader at bootstrap carousel 3 item active

How to activate any loader animation at bootstrap carousel item index 2 and stop at index3 when ever index 2 active loader start and when index 4 active loader stops. also i want to reducing this loader size too. $(document).ready(function() { …
Dami
  • 167
  • 2
  • 3
  • 14