Android AsyncTask - avoid multiple instances running

前端 未结 7 1743
夕颜
夕颜 2020-12-25 15:36

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

7条回答
  •  余生分开走
    2020-12-25 15:58

    How about just wrapping your check-what-to-send and send-it logic in a synchronized method? This approach seems to work for us.

提交回复
热议问题