Note that there are some explanatory texts on larger screens.

plurals
  1. USritwaj
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. CO@Peter Awesome! works like a charm now :) Now I understand why the activity was taking ages to load despite separating lengthy operations as AsyncTask. With get() I was effectively executing all of my operations serially. A quick question though, can you point out an instance when we would want to use `get()`? Doesn't blocking indefinitely defeat the purpose of AsyncTask altogether? To me, `get(long timeout, TimeUnit unit)` makes much more sense, as we can probably "afford" to wait for some time, in the context of our application. Thank you again for your patience :)
      singulars
    2. CO@Peter As I mentioned earlier, I want to manage all of my network tasks centrally by using this class. task count is just a static counter associated with the class [decremented on every task return , and incremented at every task spawn]. My intention is that the progress dialog is shown by the first task and dismissed by the last one. [ just rechecked, taskCount is static in my code, sorry for the typo here]
      singulars
    3. CO@Falmarri for testing purposes I changed all fooX() to look like this `private void foo1() { try { Thread.sleep(15000); }catch (Exception e) { } // network tasks done here}` shouldn't this ensure that tasks will take way too much time to execute therefore each onPostExecute() is called after a long time? UI elements load up, there is a significant delay (due to sleeping thread) and then the toasts appear, but I don't see the dialog.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload