I have AsyncTask that processes some background HTTP stuff. AsyncTask runs on schedule (Alarms/service) and sometime user executes it manually.
I process records fro
How about just wrapping your check-what-to-send and send-it logic in a synchronized method? This approach seems to work for us.
synchronized