I have an IntentService that queues up web service calls that need to be made to my web server. So each Intent is a web service call to be made.
I'd like to set something up where my application can ask this IntentService if it has any Intents containing a particular piece of data (IE: "Are you already waiting to ask the cloud for x data? Or do I need to tell you to do it?").
Are there any suggestions on how I might extend IntentService to do this? Can the Intent queue of an IntentService be traversed? Or would I need to take the IntentService code and alter it?
The only other idea I have is to add a table to the database and log which calls are in the queue, with each log being removed from the table when completed.