Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Best implimentation I have seen based on Google IO Pro Tips 2010 is the RoboSpice library, which is REST based and very cleverly works with the Activity lifecycle as to not leak memory.</p> <p>Quick <a href="https://raw.github.com/octo-online/robospice/master/gfx/RoboSpice-InfoGraphics.png" rel="noreferrer">infographic</a> the library is <a href="https://github.com/octo-online/robospice" rel="noreferrer">here</a></p> <ul> <li>Loaders are designed for database, not REST, they are reset on activity reset meaning you loose your data.</li> <li>Async task, just no.</li> <li>Intent Service + Result receiver is basically how RoboSpice work, so if you are building your own lib, I would take this approach!</li> <li>Service is also good, similar to the IntentService Method, but IntentService works a little better in this instance.</li> </ul> <p>The <code>Service</code> method maybe better, <a href="https://github.com/octo-online/robospice/blob/release/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/SpiceService.java" rel="noreferrer">look at the robospice service</a> they use an <code>ExecutorService</code> which terminates the <code>Service</code> when it has run out of <code>Requests</code> to work through, this is more Java concurrency than Android specific. Main thing to note that the service runs whilst processing requests then terminates its self if their are none left.</p> <p>The advantage of using the <code>ExecutorService</code> or any type of thread pool, is that you can define how many requests you can run at once. unless you have a very fast connection 2-4 is the most i would ever suggest.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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