Create Tasks Queue in Android
Previously i was using Tape from square to queue my task, but it have some drawback, the most importance is i cannot check whether a task is already inside the queue or not
that is why i choose to create task queue on the sqlite, the structure of the column is:
* Task type
* Task status (Pending, Processed, Success, Failed)
* Task Action (this could be url or id)
it turn out, the biggest effort is writing the Content Provider and the Class Util for the queue.
but the result is equivalent with the effort
Written by Bobby Prabowo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#